2626from common import RunnerCore , path_from_root , requires_native_clang , test_file , create_file
2727from common import skip_if , needs_dylink , no_windows , no_mac , is_slow_test , parameterized
2828from common import env_modify , with_env_modify , disabled , flaky , node_pthreads , also_with_wasm_bigint
29- from common import read_file , read_binary , requires_v8 , requires_node , requires_node_canary
29+ from common import read_file , read_binary , requires_v8 , requires_node , requires_wasm2js , requires_node_canary
3030from common import compiler_for , crossplatform , no_4gb , no_2gb
3131from common import with_both_sjlj , also_with_standalone_wasm , can_do_standalone , no_wasm64
3232from common import NON_ZERO , WEBIDL_BINDER , EMBUILDER , PYTHON
@@ -864,8 +864,8 @@ def test_emmalloc_memory_statistics(self):
864864 self .do_core_test ('test_emmalloc_memory_statistics.c' , out_suffix = out_suffix )
865865
866866 @no_optimize ('output is sensitive to optimization flags, so only test unoptimized builds' )
867- @no_wasm64 ('output is sensitive to absolute data layout' )
868867 @no_2gb ('output is sensitive to absolute data layout' )
868+ @no_4gb ('output is sensitive to absolute data layout' )
869869 @no_asan ('ASan does not support custom memory allocators' )
870870 @no_lsan ('LSan does not support custom memory allocators' )
871871 def test_emmalloc_trim (self ):
@@ -8394,8 +8394,7 @@ def verify_broken(args):
83948394
83958395 # Test basic wasm2js functionality in all core compilation modes.
83968396 @no_sanitize ('no wasm2js support yet in sanitizers' )
8397- @no_wasm64 ('no wasm2js support yet with wasm64' )
8398- @no_2gb ('no wasm2js support for >2gb address space' )
8397+ @requires_wasm2js
83998398 def test_wasm2js (self ):
84008399 if not self .is_wasm ():
84018400 self .skipTest ('redundant to test wasm2js in wasm2js* mode' )
@@ -8411,8 +8410,7 @@ def test_wasm2js(self):
84118410 self .assertNotExists ('test_hello_world.js.mem' )
84128411
84138412 @no_sanitize ('no wasm2js support yet in sanitizers' )
8414- @no_wasm64 ('no wasm2js support yet with wasm64' )
8415- @no_2gb ('no wasm2js support for >2gb address space' )
8413+ @requires_wasm2js
84168414 def test_maybe_wasm2js (self ):
84178415 if not self .is_wasm ():
84188416 self .skipTest ('redundant to test wasm2js in wasm2js* mode' )
@@ -8430,7 +8428,7 @@ def test_maybe_wasm2js(self):
84308428 self .assertContained ('hello, world!' , self .run_js ('do_wasm2js.js' ))
84318429
84328430 @no_asan ('no wasm2js support yet in asan' )
8433- @no_wasm64 ( 'no wasm2js support yet with wasm64' )
8431+ @requires_wasm2js
84348432 @parameterized ({
84358433 '' : ([],),
84368434 'minimal_runtime' : (['-sMINIMAL_RUNTIME' ],),
0 commit comments