From 1048a5035451a6e93b376a87b8e4edce52ae6f89 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Wed, 2 Mar 2016 15:22:57 +0000 Subject: [PATCH 2/2] 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 d123f47..24d0203 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(25, Error.stackTraceLimit); + } window.onerror = function(error, url, line, column, errorObj) { if (error == 'TypeError: Attempted to assign to readonly property.') { -- 2.5.0