diff options
author | Leo Balter <leonardo.balter@gmail.com> | 2018-03-09 10:31:38 -0500 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-03-09 10:31:38 -0500 |
commit | dd147e505263f5a74d1650f38f3a2151d4cca520 (patch) | |
tree | f32bffde69f4f61b8ce04c40b9946735600e8e79 /test/built-ins/AsyncFromSyncIteratorPrototype/throw/poisoned-get-throw.js | |
parent | 2576b603649bd05cc80d33c22df65252c4a25843 (diff) | |
download | qtdeclarative-testsuites-dd147e505263f5a74d1650f38f3a2151d4cca520.tar.gz |
Whitespace
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); - |