Raise Error.stackTraceLimit, if it exists (fixes #2894)
This commit is contained in:
parent
c6f9f87c8e
commit
340277db1a
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ appPanel
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function() {
|
(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) {
|
window.onerror = function(error, url, line, column, errorObj) {
|
||||||
if (error == 'TypeError: Attempted to assign to readonly property.') {
|
if (error == 'TypeError: Attempted to assign to readonly property.') {
|
||||||
|
|
Loading…
Reference in a new issue