@@ -47,6 +47,7 @@ def esm_integration(func):
47
47
def decorated (self , * args , ** kwargs ):
48
48
self .require_node_canary ()
49
49
self .node_args += ['--experimental-wasm-modules' , '--no-warnings' ]
50
+ self .emcc_args += ['-sWASM_ESM_INTEGRATION' , '-Wno-experimental' ]
50
51
if self .is_wasm64 ():
51
52
self .skipTest ('wasm64 requires wasm export wrappers' )
52
53
func (self , * args , ** kwargs )
@@ -9578,13 +9579,13 @@ def test_wasm_worker_wait_async(self):
9578
9579
9579
9580
@esm_integration
9580
9581
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!' )
9582
9583
9583
9584
@esm_integration
9584
9585
def test_esm_integration (self ):
9585
9586
# TODO(sbc): WASM_ESM_INTEGRATION doesn't currently work with closure.
9586
9587
# 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 ())
9588
9589
create_file ('runner.mjs' , '''
9589
9590
import init, { err, stringToNewUTF8, _main, _foo } from "./hello_world.mjs";
9590
9591
await init({arguments: ['foo', 'bar']});
0 commit comments