Raise Error.stackTraceLimit, if it exists (fixes #2894)

This commit is contained in:
Will Thompson 2016-03-02 15:22:57 +00:00 committed by j
parent c6f9f87c8e
commit 340277db1a

View file

@ -20,6 +20,10 @@ appPanel
*/
(function() {
// By default, Chrome and IE limit the .stack property to 10 frames
if (typeof Error.stackTraceLimit === 'number') {
Error.stackTraceLimit = Math.max(50, Error.stackTraceLimit);
}
window.onerror = function(error, url, line, column, errorObj) {
if (error == 'TypeError: Attempted to assign to readonly property.') {