diff options
Diffstat (limited to 'test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-get-throw.js')
-rw-r--r-- | test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-get-throw.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-get-throw.js b/test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-get-throw.js index 87609bebb..d057a0ced 100644 --- a/test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-get-throw.js +++ b/test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-get-throw.js @@ -24,12 +24,12 @@ var obj = { [Symbol.iterator]() { return { next() { - return { value: 1, done: false }; + return { value: 1, done: false }; }, get throw() { - throw thrownError; + throw thrownError; } - } + }; } }; @@ -49,11 +49,10 @@ 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); - |