Closed Bug 1627955 Opened 4 years ago Closed 4 years ago

Use fold expressions for JSContext::checkImpl

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

Bug 1627893 made me realize we can use this also to simplify JSContext::checkImpl.

I tested this works by adding things like this to Compartment::wrap(cx, obj)
and then executing newGlobal({newCompartment: true}):

RootedId id(cx);
cx->check(id, obj);
Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2312d4b2f258
Simplify JSContext::checkImpl with a fold expression. r=anba
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: