@@ -12427,29 +12427,6 @@ def test_standalone_syscalls(self):
1242712427 for engine in config.WASM_ENGINES:
1242812428 self.assertContained(expected, self.run_js('test.wasm', engine))
1242912429
12430- @parameterized({
12431- 'wasm2js': (['-sWASM=0'],),
12432- 'modularize': (['-sMODULARIZE', '--extern-post-js', test_file('modularize_post_js.js')],),
12433- })
12434- def test_promise_polyfill(self, constant_args):
12435- def test(args, expect_fail):
12436- # legacy browsers may lack Promise, which wasm2js depends on. see what
12437- # happens when we kill the global Promise function.
12438- self.run_process([EMCC, test_file('hello_world.c')] + constant_args + args)
12439- js = read_file('a.out.js')
12440- create_file('a.out.js', 'Promise = undefined;\n' + js)
12441- return self.run_js('a.out.js', assert_returncode=NON_ZERO if expect_fail else 0)
12442-
12443- # we fail without legacy support
12444- test([], expect_fail=True)
12445-
12446- # but work with it
12447- output = test(['-sLEGACY_VM_SUPPORT'], expect_fail=False)
12448- self.assertContained('hello, world!', output)
12449-
12450- # unless we explicitly disable polyfills
12451- test(['-sLEGACY_VM_SUPPORT', '-sNO_POLYFILL'], expect_fail=True)
12452-
1245312430 @parameterized({
1245412431 '': ([],),
1245512432 'assertions': (['-sASSERTIONS'],),
@@ -15265,7 +15242,7 @@ def test_no_extra_output(self):
1526515242
1526615243 def test_browser_too_old(self):
1526715244 err = self.expect_fail([EMCC, test_file('hello_world.c'), '-sMIN_CHROME_VERSION=10'])
15268- self.assertContained('emcc: error: MIN_CHROME_VERSION older than 32 is not supported', err)
15245+ self.assertContained('emcc: error: MIN_CHROME_VERSION older than 33 is not supported', err)
1526915246
1527015247 def test_js_only_settings(self):
1527115248 err = self.run_process([EMCC, test_file('hello_world.c'), '-o', 'foo.wasm', '-sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE=emscripten_get_heap_max'], stderr=PIPE).stderr
0 commit comments