Fix stack trace edge case
This commit is contained in:
parent
64b1e47e66
commit
0f498e0aec
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ else window.o = m()
|
||||||
}
|
}
|
||||||
if (ospecFileName == null) return stack.join("\n")
|
if (ospecFileName == null) return stack.join("\n")
|
||||||
// skip ospec-related entries on the stack
|
// skip ospec-related entries on the stack
|
||||||
while (stack[i].indexOf(ospecFileName) !== -1) i++
|
while (stack[i] && stack[i].indexOf(ospecFileName) !== -1) i++
|
||||||
// now we're in user code
|
// now we're in user code
|
||||||
return stack[i]
|
return stack[i]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue