mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
Bug 1355399 - Switch property retrieval in Async-from-Sync Iterator prototype methods.
Tag #1287
This commit is contained in:
parent
9cecb72f37
commit
3206741afa
1 changed files with 5 additions and 5 deletions
|
|
@ -2444,16 +2444,16 @@ js::AsyncFromSyncIteratorMethod(JSContext* cx, CallArgs& args, CompletionKind co
|
|||
// For 6.1.3.2.2 and 6.1.3.2.3, steps 7-16 corresponds to steps 11-20.
|
||||
|
||||
// Steps 7-8.
|
||||
RootedValue value(cx);
|
||||
if (!GetProperty(cx, resultObj, resultObj, cx->names().value, &value))
|
||||
return AbruptRejectPromise(cx, args, resultPromise, nullptr);
|
||||
|
||||
// Steps 9-10.
|
||||
RootedValue doneVal(cx);
|
||||
if (!GetProperty(cx, resultObj, resultObj, cx->names().done, &doneVal))
|
||||
return AbruptRejectPromise(cx, args, resultPromise, nullptr);
|
||||
bool done = ToBoolean(doneVal);
|
||||
|
||||
// Steps 9-10.
|
||||
RootedValue value(cx);
|
||||
if (!GetProperty(cx, resultObj, resultObj, cx->names().value, &value))
|
||||
return AbruptRejectPromise(cx, args, resultPromise, nullptr);
|
||||
|
||||
// Step 11.
|
||||
Rooted<PromiseObject*> promise(cx, CreatePromiseObjectWithoutResolutionFunctions(cx));
|
||||
if (!promise)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue