Closed Bug 1554223 Opened 1 year ago Closed 1 year ago

Consider a version of JS::NewFunctionFromSpec that does not require passing an id

Categories

(Core :: JavaScript Engine, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file)

The JSFunctionSpec already has a name in it. Some callers happen to have an id and can optimize by passing it in (though in that case we should consider asserting that the passed-in thing matches the JSFunctionSpec). But it would be nice if there were a version that doesn't take an id at all; I have a use case for such a thing.

Assignee: nobody → bzbarsky
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c7fbeec36c29
Add a version of JS::NewFunctionFromSpec that does not require passing an id.  r=jandem
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
You need to log in before you can comment on or make changes to this bug.