@no_fastcomp('wasm-backend specific feature')
@no_asan('no wasm2js support yet in asan')
def test_wasm2js(self):
    if (self.get_setting('WASM') == 0):
        self.skipTest('redundant to test wasm2js in wasm2js* mode')
    self.set_setting('WASM', 0)
    self.do_run_in_out_file_test('tests', 'core', 'test_hello_world')
    expect_memory_init_file = self.uses_memory_init_file()
    see_memory_init_file = os.path.exists('src.c.o.js.mem')
    assert (expect_memory_init_file == see_memory_init_file), ('memory init file expectation wrong: %s' % expect_memory_init_file)
    if see_memory_init_file:
        with open('src.c.o.js.mem', 'rb') as f:
            self.assertTrue((f.read()[(- 1)] != b'\x00'))
@no_fastcomp('wasm-backend specific feature')
@no_asan('no wasm2js support yet in asan')
def test_wasm2js(self):
    if (self.get_setting('WASM') == 0):
        self.skipTest('redundant to test wasm2js in wasm2js* mode')
    self.set_setting('WASM', 0)
    self.do_run_in_out_file_test('tests', 'core', 'test_hello_world')
    expect_memory_init_file = self.uses_memory_init_file()
    see_memory_init_file = os.path.exists('src.c.o.js.mem')
    assert (expect_memory_init_file == see_memory_init_file), ('memory init file expectation wrong: %s' % expect_memory_init_file)
    if see_memory_init_file:
        with open('src.c.o.js.mem', 'rb') as f:
            self.assertTrue((f.read()[(- 1)] != b'\x00'))