@@ -116,7 +116,7 @@ var LibraryDylink = {
116
116
// the canonical name of the symbol (in some cases is modify the symbol as
117
117
// part of the loop process, so that actual symbol looked up has a different
118
118
// name).
119
- $resolveGlobalSymbol__deps : [ '$isSymbolDefined' ,
119
+ $resolveGlobalSymbol__deps : [ '$isSymbolDefined' , '$createNamedFunction' ,
120
120
#if ! DISABLE_EXCEPTION_CATCHING || SUPPORT_LONGJMP == 'emscripten'
121
121
'$createInvokeFunction' ,
122
122
#endif
@@ -138,7 +138,7 @@ var LibraryDylink = {
138
138
// Asm.js-style exception handling: invoke wrapper generation
139
139
else if ( symName . startsWith ( 'invoke_' ) ) {
140
140
// 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 ] ) ) ;
142
142
}
143
143
#endif
144
144
#if ! DISABLE_EXCEPTION_CATCHING
@@ -147,13 +147,13 @@ var LibraryDylink = {
147
147
// `__cxa_find_matching_catch_` (see jsifier.js) that we know are needed,
148
148
// but a side module loaded at runtime might need different/additional
149
149
// variants so we create those dynamically.
150
- sym = wasmImports [ symName ] = ( ...args ) => {
150
+ sym = wasmImports [ symName ] = createNamedFunction ( symName , ( ...args ) => {
151
151
#if MEMORY64
152
152
args = args . map ( Number ) ;
153
153
#endif
154
154
var rtn = findMatchingCatch ( args ) ;
155
155
return { { { to64 ( 'rtn' ) } } } ;
156
- }
156
+ } ) ;
157
157
}
158
158
#endif
159
159
return { sym, name : symName } ;
0 commit comments