@@ -250,8 +250,8 @@ var LibraryDylink = {
250
250
251
251
// Loads a side module from binary data. Returns the module's exports or a
252
252
// progise that resolves to its exports if the loadAsync flag is set.
253
- $loadSideModule__deps : [ '$loadDynamicLibrary' , '$createInvokeFunction' , '$getMemory' , '$relocateExports' , '$resolveGlobalSymbol' , '$GOTHandler' ] ,
254
- $loadSideModule : function ( binary , flags ) {
253
+ $loadWebAssemblyModule__deps : [ '$loadDynamicLibrary' , '$createInvokeFunction' , '$getMemory' , '$relocateExports' , '$resolveGlobalSymbol' , '$GOTHandler' ] ,
254
+ $loadWebAssemblyModule : function ( binary , flags ) {
255
255
var int32View = new Uint32Array ( new Uint8Array ( binary . subarray ( 0 , 24 ) ) . buffer ) ;
256
256
assert ( int32View [ 0 ] == 0x6d736100 , 'need to see wasm magic number' ) ; // \0asm
257
257
// we should see the dylink section right after the magic number and wasm version
@@ -478,7 +478,7 @@ var LibraryDylink = {
478
478
// If a library was already loaded, it is not loaded a second time. However
479
479
// flags.global and flags.nodelete are handled every time a load request is made.
480
480
// Once a library becomes "global" or "nodelete", it cannot be removed or unloaded.
481
- $loadDynamicLibrary__deps: [ '$LDSO' , '$loadSideModule ' , '$asmjsMangle' , '$fetchBinary' ] ,
481
+ $loadDynamicLibrary__deps: [ '$LDSO' , '$loadWebAssemblyModule ' , '$asmjsMangle' , '$fetchBinary' ] ,
482
482
$loadDynamicLibrary : function ( lib , flags ) {
483
483
if ( lib == '__main__' && ! LDSO . loadedLibNames [ lib ] ) {
484
484
LDSO . loadedLibs [ - 1 ] = {
@@ -557,11 +557,11 @@ var LibraryDylink = {
557
557
// module not preloaded - load lib data and create new module from it
558
558
if ( flags . loadAsync ) {
559
559
return loadLibData ( lib ) . then ( function ( libData ) {
560
- return loadSideModule ( libData , flags ) ;
560
+ return loadWebAssemblyModule ( libData , flags ) ;
561
561
} ) ;
562
562
}
563
563
564
- return loadSideModule ( loadLibData ( lib ) , flags ) ;
564
+ return loadWebAssemblyModule ( loadLibData ( lib ) , flags ) ;
565
565
}
566
566
567
567
// Module.symbols <- libModule.symbols (flags.global handler)
0 commit comments