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
// IE10+ special cases: It does have callstack info, but it is only populated if an Error object is thrown,
8527
-
// so try that as a special-case.
8528
-
try {
8529
-
throw new Error(0);
8530
-
} catch(e) {
8531
-
err = e;
8532
-
}
8533
-
if (!err.stack) {
8534
-
Runtime.warnOnce('emscripten_get_callstack_js is not supported on this browser!');
8535
-
return '';
8536
-
}
8537
-
}
8538
-
var callstack = err.stack.toString();
8524
+
var callstack = jsStackTrace();
8539
8525
8540
8526
// Find the symbols in the callstack that corresponds to the functions that report callstack information, and remove everyhing up to these from the output.
8541
8527
var iThisFunc = callstack.lastIndexOf('_emscripten_log');
0 commit comments