Skip to content

Commit 5071324

Browse files
committed
Only show stack if flag is set (as is documented)
1 parent f3469b4 commit 5071324

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rt/src/Scheduler.mts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ export class Scheduler implements SchedulerInterface {
285285
console.log("--- Schedule module caught an internal exception ---");
286286
console.log("--- The following output may help identify a bug in the runtime ---");
287287
console.log("Destination function\n", dest);
288-
this.__currentThread.showStack();
288+
289+
if (showStack) {
290+
this.__currentThread.showStack();
291+
}
289292
throw e;
290293
}
291294
}

0 commit comments

Comments
 (0)