@@ -116,7 +116,7 @@ var LibraryDylink = {
116116 // the canonical name of the symbol (in some cases is modify the symbol as
117117 // part of the loop process, so that actual symbol looked up has a different
118118 // name).
119- $resolveGlobalSymbol__deps : [ '$isSymbolDefined' ,
119+ $resolveGlobalSymbol__deps : [ '$isSymbolDefined' , '$createNamedFunction' ,
120120#if ! DISABLE_EXCEPTION_CATCHING || SUPPORT_LONGJMP == 'emscripten'
121121 '$createInvokeFunction' ,
122122#endif
@@ -138,7 +138,7 @@ var LibraryDylink = {
138138 // Asm.js-style exception handling: invoke wrapper generation
139139 else if ( symName . startsWith ( 'invoke_' ) ) {
140140 // Create (and cache) new invoke_ functions on demand.
141- sym = wasmImports [ symName ] = createInvokeFunction ( symName . split ( '_' ) [ 1 ] ) ;
141+ sym = wasmImports [ symName ] = createNamedFunction ( symName , createInvokeFunction ( symName . split ( '_' ) [ 1 ] ) ) ;
142142 }
143143#endif
144144#if ! DISABLE_EXCEPTION_CATCHING
@@ -147,13 +147,13 @@ var LibraryDylink = {
147147 // `__cxa_find_matching_catch_` (see jsifier.js) that we know are needed,
148148 // but a side module loaded at runtime might need different/additional
149149 // variants so we create those dynamically.
150- sym = wasmImports [ symName ] = ( ...args ) => {
150+ sym = wasmImports [ symName ] = createNamedFunction ( symName , ( ...args ) => {
151151#if MEMORY64
152152 args = args . map ( Number ) ;
153153#endif
154154 var rtn = findMatchingCatch ( args ) ;
155155 return { { { to64 ( 'rtn' ) } } } ;
156- }
156+ } ) ;
157157 }
158158#endif
159159 return { sym, name : symName } ;
0 commit comments