Closed Bug 1621813 Opened 5 years ago Closed 5 years ago

Remove JSREPORT_EXCEPTION

Categories

(Core :: JavaScript Engine, task, P3)

task

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.

Priority: -- → P3
Assignee: nobody → evilpies

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.

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
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: