@@ -12426,29 +12426,6 @@ def test_standalone_syscalls(self):
1242612426    for engine in config.WASM_ENGINES:
1242712427      self.assertContained(expected, self.run_js('test.wasm', engine))
1242812428
12429-   @parameterized({
12430-     'wasm2js': (['-sWASM=0'],),
12431-     'modularize': (['-sMODULARIZE', '--extern-post-js', test_file('modularize_post_js.js')],),
12432-   })
12433-   def test_promise_polyfill(self, constant_args):
12434-     def test(args, expect_fail):
12435-       # legacy browsers may lack Promise, which wasm2js depends on. see what
12436-       # happens when we kill the global Promise function.
12437-       self.run_process([EMCC, test_file('hello_world.c')] + constant_args + args)
12438-       js = read_file('a.out.js')
12439-       create_file('a.out.js', 'Promise = undefined;\n' + js)
12440-       return self.run_js('a.out.js', assert_returncode=NON_ZERO if expect_fail else 0)
12441- 
12442-     # we fail without legacy support
12443-     test([], expect_fail=True)
12444- 
12445-     # but work with it
12446-     output = test(['-sLEGACY_VM_SUPPORT'], expect_fail=False)
12447-     self.assertContained('hello, world!', output)
12448- 
12449-     # unless we explicitly disable polyfills
12450-     test(['-sLEGACY_VM_SUPPORT', '-sNO_POLYFILL'], expect_fail=True)
12451- 
1245212429  @parameterized({
1245312430    '': ([],),
1245412431    'assertions': (['-sASSERTIONS'],),
0 commit comments