diff --git a/resource/bluebird.js b/resource/bluebird.js index 9c85e6e546..b4b8bc7772 100644 --- a/resource/bluebird.js +++ b/resource/bluebird.js @@ -4675,6 +4675,9 @@ function originatesFromRejection(e) { } function canAttachTrace(obj) { + // Added by Zotero + return obj.message && obj.stack && es5.propertyIsWritable(obj, "stack"); + return obj instanceof Error && es5.propertyIsWritable(obj, "stack"); }