mirror of
https://github.com/zotero/zotero.git
synced 2026-09-07 08:26:14 +00:00
Tweak varDump to not use object property getter unnecessarily
This commit is contained in:
parent
0320b08b05
commit
74863843f4
1 changed files with 1 additions and 1 deletions
|
|
@ -1346,7 +1346,7 @@ Zotero.Utilities = {
|
|||
//Special handling for Error or Exception
|
||||
var isException = Zotero.isFx && !Zotero.isBookmarklet && obj instanceof Components.interfaces.nsIException;
|
||||
var isError = obj instanceof Error;
|
||||
if (!isException && !isError && obj.constructor && obj.stack) {
|
||||
if (!isException && !isError && constructor in obj && stack in obj) {
|
||||
switch (obj.constructor.name) {
|
||||
case 'Error':
|
||||
case 'EvalError':
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue