@no_wasm('wasmifying destroys debug info and stack tracability')
@no_wasm2js('source maps support')
def test_emscripten_log(self):
    self.banned_js_engines = [V8_ENGINE]
    self.emcc_args += ['-s', 'DEMANGLE_SUPPORT=1']
    if self.get_setting('ASM_JS'):
        self.banned_js_engines += [SPIDERMONKEY_ENGINE]
    if ('-g' not in self.emcc_args):
        self.emcc_args.append('-g')
    self.emcc_args += ['-DRUN_FROM_JS_SHELL']
    self.do_run(open(path_from_root('tests', 'emscripten_log', 'emscripten_log.cpp')).read(), 'test print 123\n\n12.345679 9.123457 1.353180\n\n12345678 9123456 1353179\n\n12.345679 9123456 1353179\n\n12345678 9.123457 1353179\n\n12345678 9123456 1.353180\n\n12345678 9.123457 1.353180\n\n12.345679 9123456 1.353180\n\n12.345679 9.123457 1353179\n\nSuccess!\n')
    if (self.run_name == 'asm2'):
        print('closure')
        self.emcc_args += ['--closure', '1', '-g1']
        self.do_run_in_out_file_test('tests', 'emscripten_log', 'emscripten_log_with_closure')
@no_wasm('wasmifying destroys debug info and stack tracability')
@no_wasm2js('source maps support')
def test_emscripten_log(self):
    self.banned_js_engines = [V8_ENGINE]
    self.emcc_args += ['-s', 'DEMANGLE_SUPPORT=1']
    if self.get_setting('ASM_JS'):
        self.banned_js_engines += [SPIDERMONKEY_ENGINE]
    if ('-g' not in self.emcc_args):
        self.emcc_args.append('-g')
    self.emcc_args += ['-DRUN_FROM_JS_SHELL']
    self.do_run(open(path_from_root('tests', 'emscripten_log', 'emscripten_log.cpp')).read(), 'test print 123\n\n12.345679 9.123457 1.353180\n\n12345678 9123456 1353179\n\n12.345679 9123456 1353179\n\n12345678 9.123457 1353179\n\n12345678 9123456 1.353180\n\n12345678 9.123457 1.353180\n\n12.345679 9123456 1.353180\n\n12.345679 9.123457 1353179\n\nSuccess!\n')
    if (self.run_name == 'asm2'):
        print('closure')
        self.emcc_args += ['--closure', '1', '-g1']
        self.do_run_in_out_file_test('tests', 'emscripten_log', 'emscripten_log_with_closure')