Description[promise] separate PerformPromiseThen from PromiseThen
The `PerformPromiseThen` spec-internal operation is used by the async functions
proposal, in order to ensure that AwaitExpressions are not observable via
usual mechanisms/hooks, such as Symbol.species.
This patch has a small optimization over the specification's language to short-
circuit new Promise creation when unnecessary, similar to the logic in
Promise.resolve.
BUG=v8:5253
R=caitp@igalia.com, adamk@chromium.org, gsathya@chromium.org, yangguo@chromium.org
Patch Set 1 #
Messages
Total messages: 4 (4 generated)
|