mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Still show proper line number when no message is thrown
This commit is contained in:
parent
c322eaa1bc
commit
0b21c4c682
1 changed files with 1 additions and 1 deletions
|
|
@ -4676,7 +4676,7 @@ function originatesFromRejection(e) {
|
|||
|
||||
function canAttachTrace(obj) {
|
||||
// Added by Zotero
|
||||
return obj.message && obj.stack && es5.propertyIsWritable(obj, "stack");
|
||||
return obj && obj.stack && es5.propertyIsWritable(obj, "stack");
|
||||
|
||||
return obj instanceof Error && es5.propertyIsWritable(obj, "stack");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue