Closed
Bug 1019091
Opened 11 years ago
Closed 11 years ago
~CallSetup (destructor) should minimize work in the non-exception case
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
(deleted),
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
We're doing some JSAutoCompartment bits, saving/restoring of frame chains, etc. We should try to avoid that.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8432689 -
Flags: review?(bobbyholley)
Comment 2•11 years ago
|
||
Comment on attachment 8432689 [details] [diff] [review]
Do less work in the CallSetup destructor when we have no exception
Review of attachment 8432689 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with that
::: dom/bindings/CallbackObject.cpp
@@ +216,5 @@
>
> // Now, if we have a JSContext, report any pending errors on it, unless we
> // were told to re-throw them.
> if (mCx) {
> + bool dealtWithPendingException = !JS_IsExceptionPending(mCx);
Can we rename this variable dealWithException or something? With the current name, the correct value in the no-exception case is kind of unclear.
Attachment #8432689 -
Flags: review?(bobbyholley) → review+
Comment 3•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [need review]
Target Milestone: --- → mozilla32
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•