@no_wasm2js('TODO: nicely printed names in wasm2js')
@parameterized({'normal': ([],), 'noexcept': (['-fno-exceptions'],)})
def test_demangle_stacks(self, extra_args):
    self.emcc_args += extra_args
    self.set_setting('DEMANGLE_SUPPORT', 1)
    self.set_setting('ASSERTIONS', 1)
    self.emcc_args += ['--profiling-funcs', '--llvm-opts', '0']
    self.do_run_in_out_file_test('tests', 'core', 'test_demangle_stacks', assert_returncode=None)
    if (not self.has_changed_setting('ASSERTIONS')):
        print('without assertions, the stack is not printed, but a message suggesting assertions is')
        self.set_setting('ASSERTIONS', 0)
        self.do_run_in_out_file_test('tests', 'core', 'test_demangle_stacks_noassert', assert_returncode=None)
@no_wasm2js('TODO: nicely printed names in wasm2js')
@parameterized({'normal': ([],), 'noexcept': (['-fno-exceptions'],)})
def test_demangle_stacks(self, extra_args):
    self.emcc_args += extra_args
    self.set_setting('DEMANGLE_SUPPORT', 1)
    self.set_setting('ASSERTIONS', 1)
    self.emcc_args += ['--profiling-funcs', '--llvm-opts', '0']
    self.do_run_in_out_file_test('tests', 'core', 'test_demangle_stacks', assert_returncode=None)
    if (not self.has_changed_setting('ASSERTIONS')):
        print('without assertions, the stack is not printed, but a message suggesting assertions is')
        self.set_setting('ASSERTIONS', 0)
        self.do_run_in_out_file_test('tests', 'core', 'test_demangle_stacks_noassert', assert_returncode=None)