From 340277db1a9baa70d71e4bfa55579f1fb3744cdd Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Wed, 2 Mar 2016 15:22:57 +0000 Subject: [PATCH] Raise Error.stackTraceLimit, if it exists (fixes #2894) --- static/js/pandora.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/pandora.js b/static/js/pandora.js index cda1e5fe1..aeb44c9a1 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -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.') {