Skip to content

Commit 7c9773b

Browse files
committed
Add test case
1 parent 8191423 commit 7c9773b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_other.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ def test_export_es6_allows_export_in_post_js(self):
407407
@parameterized({
408408
'': ([],),
409409
# load a worker before startup to check ES6 modules there as well
410-
'pthreads': (['-pthread', '-sPTHREAD_POOL_SIZE=1'],),
410+
# pass -O2 to ensure the worker JS file is minified with Acorn
411+
'pthreads': (['-O2', '-pthread', '-sPTHREAD_POOL_SIZE=1'],),
411412
})
412413
def test_export_es6(self, args, package_json):
413414
self.run_process([EMCC, test_file('hello_world.c'), '-sEXPORT_ES6',

0 commit comments

Comments
 (0)