Skip to content

Commit

Permalink
Bug 1534392 - Part 1: Update step numbers in comments to match curren…
Browse files Browse the repository at this point in the history
…t draft spec. r=anba

The new steps are official since <tc39/ecma262#1250>
landed. (Some of these step numbers change again in the next commit.)

Differential Revision: https://phabricator.services.mozilla.com/D23029

UltraBlame original commit: 47e570e513851c5e4a7b930af82ad9de21e0bb22
  • Loading branch information
marco-c committed Oct 4, 2019
1 parent 5a92d80 commit 8b12f16
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions js/src/builtin/Promise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14721,17 +14721,17 @@ isInt32
)
)
;
Rooted
<
PromiseObject
*
>
RootedObject
promise
(
cx
CreatePromiseObjectWithoutResolutionFunctions
PromiseObject
:
:
unforgeableResolve
(
cx
value
)
)
;
Expand All @@ -14745,16 +14745,29 @@ return
false
;
}
if
Rooted
<
PromiseObject
*
>
unwrappedPromise
(
!
ResolvePromiseInternal
cx
UnwrapAndDowncastObject
<
PromiseObject
>
(
cx
promise
value
)
)
;
if
(
!
unwrappedPromise
)
{
return
false
Expand Down Expand Up @@ -14820,7 +14833,7 @@ return
PerformPromiseThenWithReaction
(
cx
promise
unwrappedPromise
reaction
)
;
Expand Down

0 comments on commit 8b12f16

Please sign in to comment.