File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,7 @@ var workerID = 0;
17
17
if ( ENVIRONMENT_IS_PTHREAD ) {
18
18
#if ! MINIMAL_RUNTIME
19
19
var wasmPromiseResolve ;
20
- var wasmPromiseReject ;
21
20
#endif
22
- var receivedWasmModule ;
23
21
24
22
#if ENVIRONMENT_MAY_BE_NODE
25
23
// Node.js support
@@ -66,7 +64,7 @@ if (ENVIRONMENT_IS_PTHREAD) {
66
64
67
65
#if ! MINIMAL_RUNTIME
68
66
Module [ 'instantiateWasm' ] = ( info , receiveInstance ) => {
69
- return new Promise ( ( resolve , reject ) => {
67
+ return new Promise ( ( resolve ) => {
70
68
wasmPromiseResolve = ( module ) => {
71
69
// Instantiate from the module posted from the main thread.
72
70
// We can just use sync instantiation in the worker.
@@ -81,7 +79,6 @@ if (ENVIRONMENT_IS_PTHREAD) {
81
79
#endif
82
80
resolve ( ) ;
83
81
} ;
84
- wasmPromiseReject = reject ;
85
82
} ) ;
86
83
}
87
84
#endif
You can’t perform that action at this time.
0 commit comments