Closed
Bug 1244931
Opened 10 years ago
Closed 2 years ago
Create a RAII class for side stepping error reporting.
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: mrrrgn, Unassigned)
Details
JS_SetErrorReporter returns a copy of the old error reporter which encourages the following pattern:
JSErrorReporter older = JS_SetErrorReporter(cx->runtime(), nullptr);
// ... some sneaky things with no error reporting
JS_SetErrorReporter(cx->runtime(), older);
What happens when we forget to reset the old error reporter? This is a foot gun. Let's survey where this happens and fix them up with an RAII style class.
| Reporter | ||
Updated•10 years ago
|
Assignee: nobody → winter2718
| Reporter | ||
Updated•10 years ago
|
Assignee: winter2718 → nobody
Updated•4 years ago
|
Severity: normal → S3
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•