Closed
Bug 1621813
Opened 5 years ago
Closed 5 years ago
Remove JSREPORT_EXCEPTION
Categories
(Core :: JavaScript Engine, task, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla76
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: evilpies, Assigned: evilpies)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
We have this comment explaining JSREPORT_EXCEPTION:
/*
* If JSREPORT_EXCEPTION is set, then a JavaScript-catchable exception
* has been thrown for this runtime error, and the host should ignore it.
* Exception-aware hosts should also check for JS_IsExceptionPending if
* JS_ExecuteScript returns failure, and signal or propagate the exception, as
* appropriate.
*/
It looks like in practice we never really use this flag for anything, that isn't already covered by JSREPORT_ERROR.
Updated•5 years ago
|
Priority: -- → P3
Assignee | ||
Updated•5 years ago
|
Assignee: nobody → evilpies
Assignee | ||
Comment 1•5 years ago
|
||
There are a few comments which talk about how this flag is used for
error propagation. As far as I can tell we don't actually do this.
I suspect we haven't been doing it since we have proper DOM bindings,
but I haven't actually investiaged it further.
Assignee | ||
Comment 2•5 years ago
|
||
I made some changes in preperation for removing nsIScriptError.flags in favor
of nsIConsoleMessage.logLevel.
Depends on D66877
Pushed by evilpies@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/32b70a21abb4
Remove JSREPORT_EXCEPTION. r=jandem
https://hg.mozilla.org/integration/autoland/rev/0e350d2c4b28
Remove nsIScriptError.exceptionFlag. r=mccr8
Comment 4•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/32b70a21abb4
https://hg.mozilla.org/mozilla-central/rev/0e350d2c4b28
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox76:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in
before you can comment on or make changes to this bug.
Description
•