@@ -47,6 +47,7 @@ def esm_integration(func):
4747 def decorated (self , * args , ** kwargs ):
4848 self .require_node_canary ()
4949 self .node_args += ['--experimental-wasm-modules' , '--no-warnings' ]
50+ self .emcc_args += ['-sWASM_ESM_INTEGRATION' , '-Wno-experimental' ]
5051 if self .is_wasm64 ():
5152 self .skipTest ('wasm64 requires wasm export wrappers' )
5253 func (self , * args , ** kwargs )
@@ -9578,13 +9579,13 @@ def test_wasm_worker_wait_async(self):
95789579
95799580 @esm_integration
95809581 def test_esm_integration_main (self ):
9581- self .do_runf ('hello_world.c' , 'hello, world!' , emcc_args = [ '-sWASM_ESM_INTEGRATION' , '-Wno-experimental' ], output_suffix = '.mjs' )
9582+ self .do_runf ('hello_world.c' , 'hello, world!' )
95829583
95839584 @esm_integration
95849585 def test_esm_integration (self ):
95859586 # TODO(sbc): WASM_ESM_INTEGRATION doesn't currently work with closure.
95869587 # self.maybe_closure()
9587- self .run_process ([EMCC , '-o' , 'hello_world.mjs' , '-sEXPORTED_RUNTIME_METHODS=err' , '-sEXPORTED_FUNCTIONS=_main,stringToNewUTF8' , '-sWASM_ESM_INTEGRATION' , '-Wno-experimental' , test_file ('core/test_esm_integration.c' )] + self .get_emcc_args ())
9588+ self .run_process ([EMCC , '-o' , 'hello_world.mjs' , '-sEXPORTED_RUNTIME_METHODS=err' , '-sEXPORTED_FUNCTIONS=_main,stringToNewUTF8' , test_file ('core/test_esm_integration.c' )] + self .get_emcc_args ())
95889589 create_file ('runner.mjs' , '''
95899590 import init, { err, stringToNewUTF8, _main, _foo } from "./hello_world.mjs";
95909591 await init({arguments: ['foo', 'bar']});
0 commit comments