@no_fastcomp('wasm-backend specific feature')
@no_asan('no wasm2js support yet in asan')
def test_maybe_wasm2js(self):
    if (self.get_setting('WASM') == 0):
        self.skipTest('redundant to test wasm2js in wasm2js* mode')
    self.set_setting('MAYBE_WASM2JS', 1)
    self.do_run_in_out_file_test('tests', 'core', 'test_hello_world')
    cmd = [PYTHON, path_from_root('tools', 'maybe_wasm2js.py'), 'src.c.o.js', 'src.c.o.wasm']
    if is_optimizing(self.emcc_args):
        cmd += ['-O2']
    run_process(cmd, stdout=open('do_wasm2js.js', 'w')).stdout
    os.remove('src.c.o.wasm')
    self.assertContained('hello, world!', run_js('do_wasm2js.js'))
@no_fastcomp('wasm-backend specific feature')
@no_asan('no wasm2js support yet in asan')
def test_maybe_wasm2js(self):
    if (self.get_setting('WASM') == 0):
        self.skipTest('redundant to test wasm2js in wasm2js* mode')
    self.set_setting('MAYBE_WASM2JS', 1)
    self.do_run_in_out_file_test('tests', 'core', 'test_hello_world')
    cmd = [PYTHON, path_from_root('tools', 'maybe_wasm2js.py'), 'src.c.o.js', 'src.c.o.wasm']
    if is_optimizing(self.emcc_args):
        cmd += ['-O2']
    run_process(cmd, stdout=open('do_wasm2js.js', 'w')).stdout
    os.remove('src.c.o.wasm')
    self.assertContained('hello, world!', run_js('do_wasm2js.js'))