commit 0b21c4c68296dcb81a44b58b91df477e6905543b parent c322eaa1bc311c2b562a12db171cfa7d8e51d5b9 Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 5 Feb 2015 19:01:55 -0500 Still show proper line number when no message is thrown Diffstat:
| M | resource/bluebird.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/resource/bluebird.js b/resource/bluebird.js @@ -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"); }