зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1355399 - Switch property retrieval in Async-from-Sync Iterator prototype methods. r=arai
--HG-- extra : rebase_source : 34f909d7399fa36dbd6add65d9c650c72501a696
This commit is contained in:
Родитель
38c4aba29d
Коммит
5a40a50d0e
|
@ -2414,16 +2414,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)
|
||||
|
|
|
@ -870,12 +870,11 @@ skip script test262/language/statements/async-generator/yield-star-async-next.js
|
|||
skip script test262/language/statements/async-generator/yield-star-async-return.js
|
||||
skip script test262/language/statements/async-generator/yield-star-async-throw.js
|
||||
skip script test262/language/module-code/namespace/internals/delete-non-exported.js
|
||||
|
||||
# https://github.com/tc39/test262/pull/947
|
||||
skip script test262/intl402/NumberFormat/11.1.1_32.js
|
||||
|
||||
# https://github.com/tc39/test262/pull/947
|
||||
skip script test262/intl402/DateTimeFormat/prototype/formatToParts/length.js
|
||||
|
||||
# https://github.com/tc39/test262/pull/947
|
||||
skip script test262/intl402/PluralRules/this-not-ignored.js
|
||||
|
||||
# https://github.com/tc39/test262/pull/961
|
||||
skip script test262/language/statements/async-generator/yield-star-sync-return.js
|
||||
skip script test262/language/statements/async-generator/yield-star-sync-throw.js
|
||||
skip script test262/language/statements/async-generator/yield-star-sync-next.js
|
||||
|
|
Загрузка…
Ссылка в новой задаче