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

Method setup_esm_integration

test/test_core.py:469–478  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

467 return all(f not in self.cflags for f in prohibited) and any(f in self.cflags for f in required)
468
469 def setup_esm_integration(self):
470 self.require_node_25()
471 # Using instance phase imports current generates am ExperimentalWarning under node.
472 self.node_args += ['--no-warnings']
473 self.set_setting('WASM_ESM_INTEGRATION')
474 self.cflags += ['-Wno-experimental']
475 if self.is_wasm64():
476 self.skipTest('wasm64 requires wasm export wrappers')
477 if self.is_wasm2js():
478 self.skipTest('WASM_ESM_INTEGRATION is not compatible with wasm2js')
479
480 # Use closure in some tests for some additional coverage
481 def maybe_closure(self):

Callers 2

decoratedFunction · 0.80
test_core.pyFile · 0.80

Calls 4

require_node_25Method · 0.80
set_settingMethod · 0.80
is_wasm64Method · 0.80
is_wasm2jsMethod · 0.80

Tested by

no test coverage detected