@@ -4006,9 +4006,6 @@ LibraryManager.library = {
40064006 assert ( sig . indexOf ( 'j' ) < 0 ) ; // TODO: legalization
40074007#endif // !WASM_BIGINT
40084008
4009-
4010- sig = 'dif' ;
4011-
40124009 var sigRet = sig . slice ( 0 , 1 ) ;
40134010 var sigParam = sig . slice ( 1 ) ;
40144011
@@ -4115,7 +4112,7 @@ sig = 'dif';
41154112 0x00 , 0x61 , 0x73 , 0x6d , // magic ("\0asm")
41164113 0x01 , 0x00 , 0x00 , 0x00 , // version: 1
41174114 ] . concat ( typeSection , importSection , functionSection , exportSection , codeSection ) ) ;
4118- console . log ( ' bytes' , bytes . forEach ( function ( x ) { console . log ( '0x' + x . toString ( 16 ) ) } ) ) ;
4115+ console . log ( bytes ) ;
41194116 // We can compile this wasm module synchronously because it is very small.
41204117 var module = new WebAssembly . Module ( bytes ) ;
41214118 var instance = new WebAssembly . Instance ( module , {
@@ -4138,7 +4135,7 @@ sig = 'dif';
41384135 }
41394136#endif
41404137// if (!Module['dynCall_' + sig]) {
4141- makeDynCall ( sig ) ;
4138+ Module [ 'dynCall_' + sig ] = makeDynCall ( sig ) ;
41424139 // }
41434140 if ( args && args . length ) {
41444141 return Module [ 'dynCall_' + sig ] . apply ( null , [ ptr ] . concat ( args ) ) ;
0 commit comments