File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -895,11 +895,14 @@ function getWasmImports() {
895
895
#if DECLARE_ASM_MODULE_EXPORTS
896
896
assignWasmExports ( wasmExports ) ;
897
897
#endif
898
+ #if WASM_ASYNC_COMPILATION
898
899
removeRunDependency ( 'wasm-instantiate' ) ;
900
+ #endif
899
901
return wasmExports ;
900
902
}
901
- // wait for the pthread pool ( if any)
903
+ # if WASM_ASYNC_COMPILATION
902
904
addRunDependency ( 'wasm-instantiate' ) ;
905
+ #endif
903
906
904
907
#if LOAD_SOURCE_MAP
905
908
{ { { runIfMainThread ( "addRunDependency('source-map');" ) } } }
Original file line number Diff line number Diff line change 1
1
{
2
- "hello_world.js" : 54086 ,
3
- "hello_world.js.gz" : 17172 ,
2
+ "hello_world.js" : 54043 ,
3
+ "hello_world.js.gz" : 17154 ,
4
4
"hello_world.wasm" : 15143 ,
5
5
"hello_world.wasm.gz" : 7452 ,
6
- "no_asserts.js" : 26819 ,
7
- "no_asserts.js.gz" : 8991 ,
6
+ "no_asserts.js" : 26776 ,
7
+ "no_asserts.js.gz" : 8968 ,
8
8
"no_asserts.wasm" : 12227 ,
9
9
"no_asserts.wasm.gz" : 6008 ,
10
- "strict.js" : 52136 ,
11
- "strict.js.gz" : 16504 ,
10
+ "strict.js" : 52093 ,
11
+ "strict.js.gz" : 16485 ,
12
12
"strict.wasm" : 15143 ,
13
13
"strict.wasm.gz" : 7438 ,
14
- "total" : 175554 ,
15
- "total_gz" : 63565
14
+ "total" : 175425 ,
15
+ "total_gz" : 63505
16
16
}
Original file line number Diff line number Diff line change @@ -719,7 +719,6 @@ async function createWasm() {
719
719
removeRunDependency ( 'wasm-instantiate' ) ;
720
720
return wasmExports ;
721
721
}
722
- // wait for the pthread pool (if any)
723
722
addRunDependency ( 'wasm-instantiate' ) ;
724
723
725
724
// Prefer streaming instantiation if available.
@@ -1311,8 +1310,8 @@ var _global_val = Module['_global_val'] = 65536;var wasmImports = {
1311
1310
1312
1311
var wasmExports ;
1313
1312
1314
- // With async instantation wasmExports is assigned asyncronously when the
1315
- // the instance is received.
1313
+ // With async instantation wasmExports is assigned asynchronously when the
1314
+ // instance is received.
1316
1315
createWasm ( ) ;
1317
1316
1318
1317
var calledRun ;
You can’t perform that action at this time.
0 commit comments