MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / also_with_wasm2js

Function also_with_wasm2js

test/decorators.py:469–484  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

467
468
469def also_with_wasm2js(func):
470 assert callable(func)
471
472 @wraps(func)
473 def metafunc(self, with_wasm2js, *args, **kwargs):
474 assert self.get_setting('WASM') is None
475 if DEBUG:
476 print('parameterize:wasm2js=%s' % with_wasm2js)
477 if with_wasm2js:
478 self.require_wasm2js()
479 self.set_setting('WASM', 0)
480 return func(self, *args, **kwargs)
481
482 parameterize(metafunc, {'': (False,),
483 'wasm2js': (True,)})
484 return metafunc
485
486
487def can_do_standalone(self, impure=False):

Callers

nothing calls this directly

Calls 1

parameterizeFunction · 0.85

Tested by

no test coverage detected