Skip to content

Commit

Permalink
Cherry-pick commit f821bf5 in wasm_worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Nov 17, 2022
1 parent f68b323 commit 7307f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wasm_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (ENVIRONMENT_IS_NODE) {
},
Worker: nodeWorkerThreads.Worker,
importScripts: function(f) {
(0, eval)(fs.readFileSync(f, 'utf8'));
(0, eval)(fs.readFileSync(f, 'utf8') + '//# sourceURL=' + f);
},
postMessage: function(msg) {
parentPort.postMessage(msg);
Expand Down

0 comments on commit 7307f41

Please sign in to comment.