You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than processing JS objects, just process symbols and geneate
JS strings. I think there was perhaps more complex needed in the past
but no longer.
error('DISABLE_EXCEPTION_THROWING was set (likely due to -fno-exceptions), which means no C++ exception throwing support code is linked in, but exception catching code appears. Either do not set DISABLE_EXCEPTION_THROWING (if you do want exception throwing) or compile all source files with -fno-except (so that no exceptions support code is required); also make sure DISABLE_EXCEPTION_CATCHING is set to the right value - if you want exceptions, it should be off, and vice versa.');
223
223
return;
224
224
}
225
-
constnum=+item.mangled.split('_').slice(-1)[0];
225
+
constnum=+symbol.split('_').slice(-1)[0];
226
226
addCxaCatch(num);
227
227
// Continue, with the code below emitting the proper JavaScript based on
228
228
// what we just added to the library.
229
229
}
230
230
231
-
constTOP_LEVEL='top-level compiled C/C++ code';
232
-
233
-
functionaddFromLibrary(item,dependent){
231
+
functionaddFromLibrary(symbol,dependent){
234
232
// dependencies can be JS functions, which we just run
235
-
if(typeofitem=='function'){
236
-
returnitem();
233
+
if(typeofsymbol=='function'){
234
+
returnsymbol();
237
235
}
238
236
239
-
constsymbol=item.symbol;
240
-
constmangled=item.mangled;
241
-
242
237
if(symbolinaddedLibraryItems){
243
238
return;
244
239
}
@@ -271,6 +266,8 @@ function ${name}(${args}) {
271
266
// will resolve the correct symbol at runtime, or assert if its missing.
0 commit comments