Closed Bug 991080 Opened 6 years ago Closed 6 years ago

Add an overload of ArgumentToJSValue for Promise that takes an nsTArray and creates a JS array

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

Add an overload of ArgumentToJSValue for Promise that takes an nsTArray and creates a JS array.
Summary: Add a → Add an overload of ArgumentToJSValue for Promise that takes an nsTArray and creates a JS array
Note that we could avoid allocating a temporary vector if we instead did a bunch of JS_DefineProperty calls... I'm not sure which is worse.
https://hg.mozilla.org/mozilla-central/rev/02e97453b467
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.