Open
Bug 1860083
Opened 8 months ago
Updated 8 months ago
WebIDL bindings code to convert a WebIDL Promise should create a new Promise and resolve it instead of calling Promise::Resolve
Categories
(Core :: DOM: Bindings (WebIDL), defect, P3)
Core
DOM: Bindings (WebIDL)
Tracking
()
ASSIGNED
People
(Reporter: peterv, Assigned: peterv)
References
(Blocks 1 open bug)
Details
The spec says to do:
- Let promiseCapability be ? NewPromiseCapability(%Promise%).
- Perform ? Call(promiseCapability.[[Resolve]], undefined, « V »).
- Return promiseCapability.
The generated binding code calls Promise::Resolve
, which is the equivalent of ECMAScript's Promise.resolve
. There are subtle differences between the two, because calling Promise.resolve
with a promise as its argument will just return the existing promise.
You need to log in
before you can comment on or make changes to this bug.
Description
•