Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/runtime_pthread.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ var workerID = 0;
if (ENVIRONMENT_IS_PTHREAD) {
#if !MINIMAL_RUNTIME
var wasmPromiseResolve;
var wasmPromiseReject;
#endif
var receivedWasmModule;

#if ENVIRONMENT_MAY_BE_NODE
// Node.js support
Expand Down Expand Up @@ -66,7 +64,7 @@ if (ENVIRONMENT_IS_PTHREAD) {

#if !MINIMAL_RUNTIME
Module['instantiateWasm'] = (info, receiveInstance) => {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
wasmPromiseResolve = (module) => {
// Instantiate from the module posted from the main thread.
// We can just use sync instantiation in the worker.
Expand All @@ -81,7 +79,6 @@ if (ENVIRONMENT_IS_PTHREAD) {
#endif
resolve();
};
wasmPromiseReject = reject;
});
}
#endif
Expand Down
Loading