Closed Bug 929984 Opened 12 years ago Closed 12 years ago

Object inspector does not show the message property of Error objects unless it was already accessed

Categories

(DevTools :: Object Inspector, defect)

25 Branch
x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 812764

People

(Reporter: igor, Unassigned)

Details

If I type in the console: console.log(new Error("Hello")) then it prints the [object Error]. Inspector for it does not show the message property containing the word "Hello". Similarly, for the following fragment the inspector does not show the message, lineNumber and stack properties: try { throw new Error("Test 2"); } catch (e) { console.log(e); } To force those properties to appear in the inspector I have to access the properties first: try { throw new Error("Test 2"); } catch (e) { e.message; e.stack; e.lineNumber; console.log(e); }
I think this was fixed with bug 812764. Please retest in Firefox Nightly, and reopen if it doesn't work properly. Thank you!
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.