Skip to content

Commit fa1d5c0

Browse files
committed
Avoid recursive import in test_pthread_offset_converter_modularize
This test seems to needless import itself which leads to some strange behaviour where new workers would load script via `importSripts` and then also via `require`.
1 parent b47fc03 commit fa1d5c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9216,8 +9216,9 @@ def test_pthread_offset_converter_modularize(self):
92169216
self.set_setting('EXIT_RUNTIME')
92179217
self.set_setting('USE_OFFSET_CONVERTER')
92189218
self.set_setting('MODULARIZE')
9219-
create_file('post.js', 'var m = require("./test_return_address.js"); m();')
9220-
self.emcc_args += ['--extern-post-js', 'post.js', '-sEXPORT_NAME=foo']
9219+
self.set_setting('EXPORT_NAME', 'foo')
9220+
create_file('post.js', 'foo();')
9221+
self.emcc_args += ['--extern-post-js', 'post.js']
92219222
if '-g' in self.emcc_args:
92229223
self.emcc_args += ['-DDEBUG']
92239224
self.do_runf('core/test_return_address.c', 'passed')

0 commit comments

Comments
 (0)