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 ):
@@ -8396,8 +8396,7 @@ def verify_broken(args):
83968396
83978397 # Test basic wasm2js functionality in all core compilation modes.
83988398 @no_sanitize ('no wasm2js support yet in sanitizers' )
8399- @no_wasm64 ('no wasm2js support yet with wasm64' )
8400- @no_2gb ('no wasm2js support for >2gb address space' )
8399+ @requires_wasm2js
84018400 def test_wasm2js (self ):
84028401 if not self .is_wasm ():
84038402 self .skipTest ('redundant to test wasm2js in wasm2js* mode' )
@@ -8413,8 +8412,7 @@ def test_wasm2js(self):
84138412 self .assertNotExists ('test_hello_world.js.mem' )
84148413
84158414 @no_sanitize ('no wasm2js support yet in sanitizers' )
8416- @no_wasm64 ('no wasm2js support yet with wasm64' )
8417- @no_2gb ('no wasm2js support for >2gb address space' )
8415+ @requires_wasm2js
84188416 def test_maybe_wasm2js (self ):
84198417 if not self .is_wasm ():
84208418 self .skipTest ('redundant to test wasm2js in wasm2js* mode' )
@@ -8432,7 +8430,7 @@ def test_maybe_wasm2js(self):
84328430 self .assertContained ('hello, world!' , self .run_js ('do_wasm2js.js' ))
84338431
84348432 @no_asan ('no wasm2js support yet in asan' )
8435- @no_wasm64 ( 'no wasm2js support yet with wasm64' )
8433+ @requires_wasm2js
84368434 @parameterized ({
84378435 '' : ([],),
84388436 'minimal_runtime' : (['-sMINIMAL_RUNTIME' ],),
0 commit comments