Relates :
|
Error, TypeError etc. capture stack trace at the time of throwing the exception. This is inconsistent with Java as well as other js implementations like v8. File: test.js var e = new Error(); print("hello"); try { throw e; } catch (e) { print(e.stack); } --- output -- hello Error at <program> (test.js:6) -- expected -- hello Error at <program> (test.js:1)