@parameterized({'normal': ([],), 'linked': (['-s', 'MAIN_MODULE'],)})
def test_em_js(self, args):
    if (('MAIN_MODULE' in args) and (self.get_setting('WASM') == 0)):
        self.skipTest('main module support for non-wasm')
    if ('-fsanitize=address' in self.emcc_args):
        self.skipTest('no dynamic library support in asan yet')
    self.emcc_args += (args + ['-s', 'EXPORTED_FUNCTIONS=["_main","_malloc"]'])
    self.do_run_in_out_file_test('tests', 'core', 'test_em_js')
    self.do_run_in_out_file_test('tests', 'core', 'test_em_js', force_c=True)
@parameterized({'normal': ([],), 'linked': (['-s', 'MAIN_MODULE'],)})
def test_em_js(self, args):
    if (('MAIN_MODULE' in args) and (self.get_setting('WASM') == 0)):
        self.skipTest('main module support for non-wasm')
    if ('-fsanitize=address' in self.emcc_args):
        self.skipTest('no dynamic library support in asan yet')
    self.emcc_args += (args + ['-s', 'EXPORTED_FUNCTIONS=["_main","_malloc"]'])
    self.do_run_in_out_file_test('tests', 'core', 'test_em_js')
    self.do_run_in_out_file_test('tests', 'core', 'test_em_js', force_c=True)