summaryrefslogtreecommitdiff
path: root/test/built-ins/AsyncFromSyncIteratorPrototype/throw/throw-undefined.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/AsyncFromSyncIteratorPrototype/throw/throw-undefined.js')
-rw-r--r--test/built-ins/AsyncFromSyncIteratorPrototype/throw/throw-undefined.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/built-ins/AsyncFromSyncIteratorPrototype/throw/throw-undefined.js b/test/built-ins/AsyncFromSyncIteratorPrototype/throw/throw-undefined.js
index 94863e2c5..6d0442628 100644
--- a/test/built-ins/AsyncFromSyncIteratorPrototype/throw/throw-undefined.js
+++ b/test/built-ins/AsyncFromSyncIteratorPrototype/throw/throw-undefined.js
@@ -23,7 +23,7 @@ var obj = {
[Symbol.iterator]() {
return {
next() {
- return { value: 1, done: false };
+ return { value: 1, done: false };
}
};
}
@@ -36,7 +36,6 @@ async function* asyncg() {
var iter = asyncg();
iter.next().then(function(result) {
-
iter.throw().then(
function (result) {
throw new Test262Error("Promise should be rejected, got: " + result.value);
@@ -45,11 +44,10 @@ iter.next().then(function(result) {
assert.sameValue(err, undefined, "Promise should be rejected with undefined");
iter.next().then(({ done, value }) => {
- assert.sameValue(done, true, 'the iterator is completed');
- assert.sameValue(value, undefined, 'value is undefined');
+ assert.sameValue(done, true, 'the iterator is completed');
+ assert.sameValue(value, undefined, 'value is undefined');
}).then($DONE, $DONE);
}
).catch($DONE);
}).catch($DONE);
-