Closed Bug 1488261 Opened 7 years ago Closed 7 years ago

Update InvalidStateError to include a stack trace and line number.

Categories

(Core :: DOM: Core & HTML, enhancement)

60 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: michiel, Unassigned)

Details

Attachments

(1 file)

Currently when "InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" is thrown, it might as well read "InvalidStateError: Glad I'm not you!" as it is generated without any stack trace or reference to which line of user code actually triggered it. This makes it entirely impossible to track down user code bugs and fix them.
Component: General → DOM
Attached file Testcase
Attachment #9015929 - Attachment mime type: text/plain → text/html
WFM, attached testcase alerts a non-empty stack property.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Resolution: INVALID → WORKSFORME
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: