Closed Bug 1686572 Opened 5 years ago Closed 5 years ago

Return OffThreadToken* from DecodeOffThreadScript

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The DecodeOffThreadScript APIs have both an optional out-param pointer tokenOut and return a bool. Instead the token should just be returned directly to simplify code.

Instead of using both an optional out-param and a boolean return value, we
can simply return the token directly. This is less error-prone and requires
no change to callers that did not use the out-param.

Pushed by tcampbell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/62acc7bce1c1 Return JS::OffThreadToken* from off-thread script compile. r=arai
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: