Skip to content

Commit

Permalink
inline GetMethod call
Browse files Browse the repository at this point in the history
  • Loading branch information
gsathya committed Apr 11, 2019
1 parent c9fef29 commit 295858d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -38265,7 +38265,8 @@ <h1>Runtime Semantics: PerformPromiseAll ( _iteratorRecord_, _constructor_, _res
1. Assert: _resultCapability_ is a PromiseCapability Record.
1. Let _values_ be a new empty List.
1. Let _remainingElementsCount_ be a new Record { [[Value]]: 1 }.
1. Let _promiseResolve_ be ? GetMethod(_constructor_, `"resolve"`).
1. Let _promiseResolve_ be ? Get(_constructor_, `"resolve"`).
1. If IsCallable(_promiseResolve_) is *false*, throw a *TypeError* exception.
1. Let _index_ be 0.
1. Repeat,
1. Let _next_ be IteratorStep(_iteratorRecord_).
Expand Down Expand Up @@ -38354,7 +38355,8 @@ <h1>Runtime Semantics: PerformPromiseRace ( _iteratorRecord_, _constructor_, _re
<emu-alg>
1. Assert: IsConstructor(_constructor_) is *true*.
1. Assert: _resultCapability_ is a PromiseCapability Record.
1. Let _promiseResolve_ be ? GetMethod(_constructor_, `"resolve"`).
1. Let _promiseResolve_ be ? Get(_constructor_, `"resolve"`).
1. If IsCallable(_promiseResolve_) is *false*, throw a *TypeError* exception.
1. Repeat,
1. Let _next_ be IteratorStep(_iteratorRecord_).
1. If _next_ is an abrupt completion, set _iteratorRecord_.[[Done]] to *true*.
Expand Down

0 comments on commit 295858d

Please sign in to comment.