@@ -404,7 +404,7 @@ def can_run(self, wasm):
404404 if random .random () < 0.5 :
405405 return False
406406 # wasm2c doesn't support most features
407- return all ([x in FEATURE_OPTS for x in ['--disable-exception-handling' , '--disable-simd' , '--disable-threads' , '--disable-bulk-memory' , '--disable-nontrapping-float-to-int' , '--disable-tail-call' , '--disable-sign-ext' , '--disable-reference-types' , '--disable-multivalue' , '--disable-anyref ' ]])
407+ return all ([x in FEATURE_OPTS for x in ['--disable-exception-handling' , '--disable-simd' , '--disable-threads' , '--disable-bulk-memory' , '--disable-nontrapping-float-to-int' , '--disable-tail-call' , '--disable-sign-ext' , '--disable-reference-types' , '--disable-multivalue' , '--disable-gc ' ]])
408408
409409 def run (self , wasm ):
410410 run ([in_bin ('wasm-opt' ), wasm , '--emit-wasm2c-wrapper=main.c' ] + FEATURE_OPTS )
@@ -504,7 +504,7 @@ def compare_before_and_after(self, before, after):
504504 compare (before [vm ], after [vm ], 'CompareVMs between before and after: ' + vm .name )
505505
506506 def can_run_on_feature_opts (self , feature_opts ):
507- return all ([x in feature_opts for x in ['--disable-simd' , '--disable-reference-types' , '--disable-exception-handling' , '--disable-multivalue' , '--disable-anyref ' ]])
507+ return all ([x in feature_opts for x in ['--disable-simd' , '--disable-reference-types' , '--disable-exception-handling' , '--disable-multivalue' , '--disable-gc ' ]])
508508
509509
510510# Check for determinism - the same command must have the same output.
@@ -635,7 +635,7 @@ def run(self, wasm):
635635 return run_vm ([shared .NODEJS , js_file , 'a.wasm' ])
636636
637637 def can_run_on_feature_opts (self , feature_opts ):
638- return all ([x in feature_opts for x in ['--disable-exception-handling' , '--disable-simd' , '--disable-threads' , '--disable-bulk-memory' , '--disable-nontrapping-float-to-int' , '--disable-tail-call' , '--disable-sign-ext' , '--disable-reference-types' , '--disable-multivalue' , '--disable-anyref ' ]])
638+ return all ([x in feature_opts for x in ['--disable-exception-handling' , '--disable-simd' , '--disable-threads' , '--disable-bulk-memory' , '--disable-nontrapping-float-to-int' , '--disable-tail-call' , '--disable-sign-ext' , '--disable-reference-types' , '--disable-multivalue' , '--disable-gc ' ]])
639639
640640
641641class Asyncify (TestCaseHandler ):
@@ -689,7 +689,7 @@ def do_asyncify(wasm):
689689 compare (before , after_asyncify , 'Asyncify (before/after_asyncify)' )
690690
691691 def can_run_on_feature_opts (self , feature_opts ):
692- return all ([x in feature_opts for x in ['--disable-exception-handling' , '--disable-simd' , '--disable-tail-call' , '--disable-reference-types' , '--disable-multivalue' , '--disable-anyref ' ]])
692+ return all ([x in feature_opts for x in ['--disable-exception-handling' , '--disable-simd' , '--disable-tail-call' , '--disable-reference-types' , '--disable-multivalue' , '--disable-gc ' ]])
693693
694694
695695# The global list of all test case handlers
@@ -875,7 +875,7 @@ def randomize_opt_flags():
875875# some features depend on other features, so if a required feature is
876876# disabled, its dependent features need to be disabled as well.
877877IMPLIED_FEATURE_OPTS = {
878- '--disable-reference-types' : ['--disable-exception-handling' , '--disable-anyref ' ]
878+ '--disable-reference-types' : ['--disable-exception-handling' , '--disable-gc ' ]
879879}
880880
881881if __name__ == '__main__' :
0 commit comments