Skip to content

Commit 864dc2c

Browse files
authored
[test] Remove no longer used uses_es6 test prop. NFC (#23012)
1 parent 2d92bdd commit 864dc2c

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

test/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,6 @@ def setUp(self):
10911091
self.v8_args = ['--wasm-staging']
10921092
self.env = {}
10931093
self.temp_files_before_run = []
1094-
self.uses_es6 = False
10951094
self.required_engine = None
10961095
self.wasm_engines = config.WASM_ENGINES.copy()
10971096
self.use_all_engines = EMTEST_ALL_ENGINES

test/test_core.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5708,7 +5708,6 @@ def test_istream(self):
57085708

57095709
def test_fs_base(self):
57105710
self.set_setting('DEFAULT_LIBRARY_FUNCS_TO_INCLUDE', ['$FS'])
5711-
self.uses_es6 = True
57125711
self.add_pre_run(read_file(test_file('filesystem/src.js')))
57135712
src = 'int main() {return 0;}\n'
57145713
expected = read_file(test_file('filesystem/output.txt'))
@@ -5718,10 +5717,6 @@ def test_fs_base(self):
57185717
@is_slow_test
57195718
@requires_node
57205719
def test_fs_nodefs_rw(self):
5721-
# TODO(sbc): This test exposes in issue in the way we run closure compiler and
5722-
# causes it to generate non-ES5 output.
5723-
# Remove this line once we fix: https://github.com/emscripten-core/emscripten/issues/12628
5724-
self.uses_es6 = True
57255720
self.emcc_args += ['-lnodefs.js']
57265721
self.set_setting('SYSCALL_DEBUG')
57275722
self.do_runf('fs/test_nodefs_rw.c', 'success')
@@ -5811,7 +5806,6 @@ def test_fs_append(self):
58115806
'wasmfs': ['WASMFS']
58125807
})
58135808
def test_fs_mmap(self, fs):
5814-
self.uses_es6 = True
58155809
if fs == 'NODEFS':
58165810
self.require_node()
58175811
self.emcc_args += ['-lnodefs.js']
@@ -5922,7 +5916,6 @@ def test_sigaction_default(self, signal, exit_code, assert_identical):
59225916
'noderawfs': (['-DNODERAWFS', '-sNODERAWFS'],)
59235917
})
59245918
def test_unistd_access(self, args):
5925-
self.uses_es6 = True
59265919
self.emcc_args += args
59275920
if self.get_setting('WASMFS'):
59285921
if '-DNODEFS' in args or '-DNODERAWFS' in args:
@@ -5936,7 +5929,6 @@ def test_unistd_access(self, args):
59365929
self.do_run_in_out_file_test('unistd/access.c')
59375930

59385931
def test_unistd_curdir(self):
5939-
self.uses_es6 = True
59405932
if self.get_setting('WASMFS'):
59415933
self.set_setting('FORCE_FILESYSTEM')
59425934
self.do_run_in_out_file_test('unistd/curdir.c')
@@ -5961,7 +5953,6 @@ def test_unistd_dup(self):
59615953
'nodefs': (['NODEFS'])
59625954
})
59635955
def test_unistd_truncate(self, fs):
5964-
self.uses_es6 = True
59655956
orig_compiler_opts = self.emcc_args.copy()
59665957
self.emcc_args = orig_compiler_opts + ['-D' + fs]
59675958
if self.get_setting('WASMFS'):
@@ -5977,7 +5968,6 @@ def test_unistd_truncate(self, fs):
59775968
@unittest.skipIf(WINDOWS or os.geteuid() == 0, "Root access invalidates this test by being able to write on readonly files")
59785969
@requires_node
59795970
def test_unistd_truncate_noderawfs(self):
5980-
self.uses_es6 = True
59815971
self.set_setting('NODERAWFS')
59825972
self.maybe_closure()
59835973
self.do_run_in_out_file_test('unistd/truncate.c')
@@ -7640,7 +7630,6 @@ def test_embind_no_rtti_followed_by_rtti(self):
76407630
'all_growth': ('ALL', True),
76417631
})
76427632
def test_webidl(self, mode, allow_memory_growth):
7643-
self.uses_es6 = True
76447633
self.set_setting('WASM_ASYNC_COMPILATION', 0)
76457634
if self.maybe_closure():
76467635
# avoid closure minified names competing with our test code in the global name space
@@ -9538,7 +9527,6 @@ def test_emscripten_async_call(self):
95389527
'no_dynamic_execution': (['-sDYNAMIC_EXECUTION=0'],)
95399528
})
95409529
def test_embind_lib_with_asyncify(self, args):
9541-
self.uses_es6 = True
95429530
self.emcc_args += [
95439531
'-lembind',
95449532
'-sASYNCIFY',
@@ -9552,7 +9540,6 @@ def test_embind_lib_with_asyncify(self, args):
95529540
@no_asan('asyncify stack operations confuse asan')
95539541
@with_asyncify_and_jspi
95549542
def test_em_async_js(self):
9555-
self.uses_es6 = True
95569543
if not self.get_setting('ASYNCIFY'):
95579544
self.set_setting('ASYNCIFY')
95589545
self.set_setting('EXPORTED_RUNTIME_METHODS', 'ccall')

test/test_other.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13145,7 +13145,6 @@ def test_shell_Oz(self):
1314513145
self.do_run_in_out_file_test('hello_world.c', emcc_args=['-Oz'])
1314613146

1314713147
def test_runtime_keepalive(self):
13148-
self.uses_es6 = True
1314913148
# Depends on Module['onExit']
1315013149
self.set_setting('EXIT_RUNTIME')
1315113150
self.do_other_test('test_runtime_keepalive.cpp')
@@ -13922,7 +13921,6 @@ def test_es5_transpile(self, args):
1392213921

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

1392713925
def check_for_es6(filename, expect):
1392813926
js = read_file(filename)

0 commit comments

Comments
 (0)