==================test.js============= function f(a1) { try{ Error.stackTraceLimit = a1; throw Error() } catch(e) { return e.stack; } } for (let i = 0; i < 2; i++) { print(f(i)); } ===================================== Run args: ./jsc test.js JSC prints two "undefined". V8 prints "undefined" and a stacktrace. The same problem is in Safari console. Error.statckTraceLimit can not be modified correctly in LLInt.
Dupe of bug 255508?
<rdar://problem/109385674>