summaryrefslogtreecommitdiff
path: root/test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-throw.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-throw.js')
-rw-r--r--test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-throw.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-throw.js b/test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-throw.js
index 25bfc5b28..5625eb8e9 100644
--- a/test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-throw.js
+++ b/test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-throw.js
@@ -27,10 +27,10 @@ var obj = {
[Symbol.iterator]() {
return {
next() {
- return { value: 1, done: false };
+ return { value: 1, done: false };
},
throw() {
- throw thrownError;
+ throw thrownError;
}
};
}
@@ -52,10 +52,9 @@ iter.next().then(function(result) {
assert.sameValue(err, thrownError, "Promise should be rejected with thrown error");
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);