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
error(aliasSig+' ('+lib[aliasSig]+') differs from '+targetSig+' ('+lib[targetSig]+')');
255
+
error(`${aliasSig} (${lib[aliasSig]}) differs from ${targetSig} (${lib[targetSig]})`);
258
256
}
259
257
260
258
varsig=lib[aliasSig]||lib[targetSig];
261
259
if(typeofsig!=='string'){
262
-
error('Function '+x+' aliases to target function '+target+', but neither the alias or the target provide a signature. Please add a '+targetSig+": 'vifj...' annotation or a "+aliasSig+": 'vifj...' annotation to describe the type of function forwarding that is needed!");
260
+
error(`Function ${x}aliases to target function ${target}, but neither the alias or the target provide a signature. Please add a ${targetSig}: 'vifj...' annotation or a ${aliasSig}: 'vifj...' annotation to describe the type of function forwarding that is needed!`);
263
261
}
264
262
265
263
// If only one of the target or the alias specifies a sig then copy
extra='. Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you';
360
358
}
361
359
if(!isNumber){
362
-
return'if (!Object.getOwnPropertyDescriptor(Module, "'+name+'")) Module["'+name+'"] = function() { abort("\''+name+'\' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)'+extra+'") };';
360
+
return`if (!Object.getOwnPropertyDescriptor(Module, "${name}")) Module["${name}"] = function() { abort("'${name}' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)${extra}") };`;
363
361
}else{
364
-
return'if (!Object.getOwnPropertyDescriptor(Module, "'+name+'")) Object.defineProperty(Module, "'+name+'", { configurable: true, get: function() { abort("\''+name+'\' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)'+extra+'") } });';
362
+
return`if (!Object.getOwnPropertyDescriptor(Module, "${name}")) Object.defineProperty(Module, "${name}", { configurable: true, get: function() { abort("'${name}' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)${extra}") } });`;
365
363
}
366
364
}
367
365
return'';
@@ -474,7 +472,7 @@ function exportRuntime() {
474
472
threadExports.push('ExitStatus');
475
473
}
476
474
477
-
threadExports.forEach(function(x){
475
+
threadExports.forEach(x=>{
478
476
EXPORTED_RUNTIME_METHODS_SET[x]=1;
479
477
runtimeElements.push(x);
480
478
});
@@ -501,12 +499,12 @@ function exportRuntime() {
501
499
// check all exported things exist, warn about typos
0 commit comments