Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion test/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,6 @@ def setUp(self):
self.v8_args = ['--wasm-staging']
self.env = {}
self.temp_files_before_run = []
self.uses_es6 = False
self.required_engine = None
self.wasm_engines = config.WASM_ENGINES.copy()
self.use_all_engines = EMTEST_ALL_ENGINES
Expand Down
13 changes: 0 additions & 13 deletions test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -5708,7 +5708,6 @@ def test_istream(self):

def test_fs_base(self):
self.set_setting('DEFAULT_LIBRARY_FUNCS_TO_INCLUDE', ['$FS'])
self.uses_es6 = True
self.add_pre_run(read_file(test_file('filesystem/src.js')))
src = 'int main() {return 0;}\n'
expected = read_file(test_file('filesystem/output.txt'))
Expand All @@ -5718,10 +5717,6 @@ def test_fs_base(self):
@is_slow_test
@requires_node
def test_fs_nodefs_rw(self):
# TODO(sbc): This test exposes in issue in the way we run closure compiler and
# causes it to generate non-ES5 output.
# Remove this line once we fix: https://github.com/emscripten-core/emscripten/issues/12628
self.uses_es6 = True
self.emcc_args += ['-lnodefs.js']
self.set_setting('SYSCALL_DEBUG')
self.do_runf('fs/test_nodefs_rw.c', 'success')
Expand Down Expand Up @@ -5811,7 +5806,6 @@ def test_fs_append(self):
'wasmfs': ['WASMFS']
})
def test_fs_mmap(self, fs):
self.uses_es6 = True
if fs == 'NODEFS':
self.require_node()
self.emcc_args += ['-lnodefs.js']
Expand Down Expand Up @@ -5922,7 +5916,6 @@ def test_sigaction_default(self, signal, exit_code, assert_identical):
'noderawfs': (['-DNODERAWFS', '-sNODERAWFS'],)
})
def test_unistd_access(self, args):
self.uses_es6 = True
self.emcc_args += args
if self.get_setting('WASMFS'):
if '-DNODEFS' in args or '-DNODERAWFS' in args:
Expand All @@ -5936,7 +5929,6 @@ def test_unistd_access(self, args):
self.do_run_in_out_file_test('unistd/access.c')

def test_unistd_curdir(self):
self.uses_es6 = True
if self.get_setting('WASMFS'):
self.set_setting('FORCE_FILESYSTEM')
self.do_run_in_out_file_test('unistd/curdir.c')
Expand All @@ -5961,7 +5953,6 @@ def test_unistd_dup(self):
'nodefs': (['NODEFS'])
})
def test_unistd_truncate(self, fs):
self.uses_es6 = True
orig_compiler_opts = self.emcc_args.copy()
self.emcc_args = orig_compiler_opts + ['-D' + fs]
if self.get_setting('WASMFS'):
Expand All @@ -5977,7 +5968,6 @@ def test_unistd_truncate(self, fs):
@unittest.skipIf(WINDOWS or os.geteuid() == 0, "Root access invalidates this test by being able to write on readonly files")
@requires_node
def test_unistd_truncate_noderawfs(self):
self.uses_es6 = True
self.set_setting('NODERAWFS')
self.maybe_closure()
self.do_run_in_out_file_test('unistd/truncate.c')
Expand Down Expand Up @@ -7640,7 +7630,6 @@ def test_embind_no_rtti_followed_by_rtti(self):
'all_growth': ('ALL', True),
})
def test_webidl(self, mode, allow_memory_growth):
self.uses_es6 = True
self.set_setting('WASM_ASYNC_COMPILATION', 0)
if self.maybe_closure():
# avoid closure minified names competing with our test code in the global name space
Expand Down Expand Up @@ -9538,7 +9527,6 @@ def test_emscripten_async_call(self):
'no_dynamic_execution': (['-sDYNAMIC_EXECUTION=0'],)
})
def test_embind_lib_with_asyncify(self, args):
self.uses_es6 = True
self.emcc_args += [
'-lembind',
'-sASYNCIFY',
Expand All @@ -9552,7 +9540,6 @@ def test_embind_lib_with_asyncify(self, args):
@no_asan('asyncify stack operations confuse asan')
@with_asyncify_and_jspi
def test_em_async_js(self):
self.uses_es6 = True
if not self.get_setting('ASYNCIFY'):
self.set_setting('ASYNCIFY')
self.set_setting('EXPORTED_RUNTIME_METHODS', 'ccall')
Expand Down
2 changes: 0 additions & 2 deletions test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -13145,7 +13145,6 @@ def test_shell_Oz(self):
self.do_run_in_out_file_test('hello_world.c', emcc_args=['-Oz'])

def test_runtime_keepalive(self):
self.uses_es6 = True
# Depends on Module['onExit']
self.set_setting('EXIT_RUNTIME')
self.do_other_test('test_runtime_keepalive.cpp')
Expand Down Expand Up @@ -13922,7 +13921,6 @@ def test_es5_transpile(self, args):

create_file('test.c', 'extern void foo(); int main() { foo(); }')
self.emcc_args += ['--js-library', 'es6_library.js']
self.uses_es6 = True

def check_for_es6(filename, expect):
js = read_file(filename)
Expand Down