@@ -3466,10 +3466,13 @@ def test_syntax_only_invalid(self):
34663466 self.assertContained("src.c:1:13: error: expected '}'", err)
34673467 self.assertNotExists('a.out.js')
34683468
3469+ # `demangle` is a legacy JS function on longer used by emscripten
3470+ # TODO(sbc): Remove `demangle` and this test.
34693471 def test_demangle(self):
34703472 create_file('src.cpp', '''
34713473 #include <stdio.h>
34723474 #include <emscripten.h>
3475+
34733476 void two(char c) {
34743477 EM_ASM(out(stackTrace()));
34753478 }
@@ -3547,10 +3550,10 @@ def test_demangle_cpp(self):
35473550
35483551 self.do_runf('src.cpp', 'Waka::f::a23412341234::point()')
35493552
3550- # Test that malloc() -> OOM -> abort() -> stackTrace() -> jsStackTrace() -> demangleAll() -> demangle() -> malloc()
3551- # cycle will not produce an infinite loop.
3553+ # Test that malloc() -> OOM -> abort() -> stackTrace() -> jsStackTrace()
3554+ # cycle will not cycle back to malloc to produce an infinite loop.
35523555 def test_demangle_malloc_infinite_loop_crash(self):
3553- self.run_process([EMXX, test_file('malloc_demangle_infinite_loop.cpp'), '-g', '-sABORTING_MALLOC', '-sDEMANGLE_SUPPORT' ])
3556+ self.run_process([EMXX, test_file('malloc_demangle_infinite_loop.cpp'), '-g', '-sABORTING_MALLOC'])
35543557 output = self.run_js('a.out.js', assert_returncode=NON_ZERO)
35553558 if output.count('Cannot enlarge memory arrays') > 5:
35563559 print(output)
@@ -8423,7 +8426,7 @@ def test_metadce_minimal_pthreads(self):
84238426 'except': (['-O2', '-fexceptions'], [], ['waka']), # noqa
84248427 # exceptions does not pull in demangling by default, which increases code size
84258428 'mangle': (['-O2', '-fexceptions',
8426- '-sDEMANGLE_SUPPORT'], [], ['waka']), # noqa
8429+ '-sDEMANGLE_SUPPORT', '-Wno-deprecated' ], [], ['waka']), # noqa
84278430 # Wasm EH's code size increase is smaller than that of Emscripten EH
84288431 'except_wasm': (['-O2', '-fwasm-exceptions'], [], ['waka']), # noqa
84298432 # eval_ctors 1 can partially optimize, but runs into getenv() for locale
0 commit comments