diff --git a/src/library_pthread.js b/src/library_pthread.js index 4acef581ba84..ef99f099ea88 100644 --- a/src/library_pthread.js +++ b/src/library_pthread.js @@ -446,7 +446,7 @@ var LibraryPThread = { var p = trustedTypes.createPolicy( 'emscripten#workerPolicy1', { - createScriptURL: (ignored) => new URL(import.meta.url); + createScriptURL: (ignored) => new URL(import.meta.url) } ); worker = new Worker(p.createScriptURL('ignored'), workerOptions); diff --git a/test/test_other.py b/test/test_other.py index 45d56ec9cbee..acd408f079f0 100644 --- a/test/test_other.py +++ b/test/test_other.py @@ -12397,8 +12397,12 @@ def test_SUPPORT_LONGJMP_wasm(self): # because Emscripten EH and Wasm SjLj cannot be used at the same time. self.run_process([EMCC, test_file('core/test_longjmp.c'), '-c', '-sSUPPORT_LONGJMP=wasm', '-o', 'a.o']) - def test_pthread_MODULARIZE(self): - self.run_process([EMCC, test_file('hello_world.c'), '-o', 'out.mjs', '-pthread', '-sPROXY_TO_PTHREAD', '-sMODULARIZE', '-sEXIT_RUNTIME']) + @parameterized({ + '': [[]], + 'trusted': [['-sTRUSTED_TYPES']] + }) + def test_pthread_export_es6(self, args): + self.run_process([EMCC, test_file('hello_world.c'), '-o', 'out.mjs', '-pthread', '-sPROXY_TO_PTHREAD', '-sEXIT_RUNTIME'] + args) create_file('runner.mjs', ''' import Hello from "./out.mjs"; Hello(); @@ -12491,7 +12495,8 @@ def test_old_makeDynCall_syntax(self): # For this test verify the different build options that generate anonymous enclosing function scopes. (DYNCALLS and MEMORY64) @parameterized({ 'plain': [[]], - 'dyncalls': [['-sDYNCALLS']]}) + 'dyncalls': [['-sDYNCALLS']] + }) def test_this_in_dyncall(self, args): self.do_run_in_out_file_test('no_this_in_dyncall.c', emcc_args=['--js-library', test_file('no_this_in_dyncall.js')] + args)