Closed Bug 1921963 Opened 11 months ago Closed 11 months ago

Enable exception handling assertions added in bug 1921780 everywhere

Categories

(Core :: JavaScript Engine, task)

task

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Bug 1921780 made uncatchable exceptions a bit more explicit and added assertions to catch some JSAPI footguns (bug 552007, bug 1408013).

I enabled this only for the JS shell initially, but if this is green in fuzzing we should enable the assertions everywhere.

Flags: needinfo?(jdemooij)

As I expected, there is some orange here: https://treeherder.mozilla.org/jobs?repo=try&group_state=expanded&revision=5e6ab3cf16ad0aa3fa3b12b0736edbd510104bf6

These are either places where Gecko is reporting uncatchable exceptions and it just needs to use the new API, or they're caused by bugs where it's unintentionally throwing uncatchable exceptions.

Flags: needinfo?(jdemooij)

With two more ReportUncatchableException calls the browser tests are looking suspiciously green... Here goes nothing.

Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ed6d212df870 part 1 - Use JS::ReportUncatchableException more outside the JS engine. r=arai
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5bdbbd942d48 part 2 - Enable exception handling assertions everywhere. r=arai
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: