@@ -1010,12 +1010,6 @@ def test_failure_error_code(self):
10101010 self.expect_fail([compiler, test_file('hello_world.c'), 'this_file_is_missing.c', '-o', 'out.js'])
10111011 self.assertFalse(os.path.exists('out.js'))
10121012
1013- def test_failure_modularize_and_catch_rejection(self):
1014- for compiler in [EMCC, EMXX]:
1015- # Test that if sMODULARIZE and sNODEJS_CATCH_REJECTION are both enabled, then emcc shouldn't succeed, and shouldn't produce an output file.
1016- self.expect_fail([compiler, test_file('hello_world.c'), '-sMODULARIZE', '-sNODEJS_CATCH_REJECTION', '-o', 'out.js'])
1017- self.assertFalse(os.path.exists('out.js'))
1018-
10191013 def test_failure_modularize_and_catch_exit(self):
10201014 for compiler in [EMCC, EMXX]:
10211015 # Test that if sMODULARIZE and sNODEJS_CATCH_EXIT are both enabled, then emcc shouldn't succeed, and shouldn't produce an output file.
@@ -7478,7 +7472,6 @@ def test_i64_return_value(self, args, bind_js):
74787472 ''')
74797473
74807474 # Run the test and confirm the output is as expected.
7481- self.node_args += shared.node_bigint_flags()
74827475 out = self.run_js('testrun.js')
74837476 self.assertContained('''\
74847477input = 0xaabbccdd11223344
@@ -12676,7 +12669,7 @@ def test_config_closure_compiler(self):
1267612669 self.assertContained(sys.executable, err)
1267712670 self.assertContained('not execute properly!', err)
1267812671
12679- def test_node_unhandled_rejection (self):
12672+ def test_unhandled_rejection (self):
1268012673 create_file('pre.js', '''
1268112674 async function foo() {
1268212675 var a = missing;
@@ -12695,24 +12688,11 @@ def test_node_unhandled_rejection(self):
1269512688 }
1269612689 ''')
1269712690
12698- # With NODEJS_CATCH_REJECTION we expect the unhandled rejection to cause a non-zero
12699- # exit code and log the stack trace correctly.
12691+ # We expect the unhandled rejection to cause a non-zero exit code and log
12692+ # the stack trace correctly.
1270012693 self.build('main.c', emcc_args=['--pre-js=pre.js', '-sNODEJS_CATCH_REJECTION'])
1270112694 output = self.run_js('main.js', assert_returncode=NON_ZERO)
12702- self.assertContained('unhandledRejection', read_file('main.js'))
12703- self.assertContained('ReferenceError: missing is not defined', output)
12704- self.assertContained('at foo (', output)
12705-
12706- # Without NODEJS_CATCH_REJECTION we expect node to log the unhandled rejection
12707- # but return 0.
12708- self.node_args = [a for a in self.node_args if '--unhandled-rejections' not in a]
12709- self.build('main.c', emcc_args=['--pre-js=pre.js', '-sNODEJS_CATCH_REJECTION=0'])
1271012695 self.assertNotContained('unhandledRejection', read_file('main.js'))
12711-
12712- if shared.check_node_version()[0] >= 15:
12713- self.skipTest('old behaviour of node JS cannot be tested on node v15 or above')
12714-
12715- output = self.run_js('main.js')
1271612696 self.assertContained('ReferenceError: missing is not defined', output)
1271712697 self.assertContained('at foo (', output)
1271812698
@@ -12907,7 +12887,6 @@ def test_wasmfs_readfile(self):
1290712887 def test_wasmfs_readfile_bigint(self):
1290812888 self.set_setting('FORCE_FILESYSTEM')
1290912889 self.set_setting('WASM_BIGINT')
12910- self.node_args += shared.node_bigint_flags()
1291112890 self.do_run_in_out_file_test(test_file('wasmfs/wasmfs_readfile.c'))
1291212891
1291312892 def test_wasmfs_jsfile(self):
@@ -13138,7 +13117,6 @@ def test_error_in_js_libraries(self):
1313813117 @also_with_minimal_runtime
1313913118 def test_shared_memory(self):
1314013119 self.do_runf(test_file('wasm_worker/shared_memory.c'), '0', emcc_args=[])
13141- self.node_args += shared.node_pthread_flags()
1314213120 self.do_runf(test_file('wasm_worker/shared_memory.c'), '1', emcc_args=['-sSHARED_MEMORY'])
1314313121 self.do_runf(test_file('wasm_worker/shared_memory.c'), '1', emcc_args=['-sWASM_WORKERS'])
1314413122 self.do_runf(test_file('wasm_worker/shared_memory.c'), '1', emcc_args=['-pthread'])
@@ -13671,7 +13649,6 @@ def test_missing_struct_info(self):
1367113649 def run_wasi_test_suite_test(self, name):
1367213650 if not os.path.exists(path_from_root('test/third_party/wasi-test-suite')):
1367313651 self.fail('wasi-testsuite not found; run `git submodule update --init`')
13674- self.node_args += shared.node_bigint_flags()
1367513652 wasm = path_from_root('test', 'third_party', 'wasi-test-suite', name + '.wasm')
1367613653 with open(path_from_root('test', 'third_party', 'wasi-test-suite', name + '.json')) as f:
1367713654 config = json.load(f)
0 commit comments