diff options
Diffstat (limited to 'test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js')
-rw-r--r-- | test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js index 95dde51bd..a325a995b 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js @@ -11,16 +11,17 @@ flags: [async] var iterThrows = {}; var error = new Test262Error(); -iterThrows[Symbol.iterator] = function() { - return { - next: function() { - throw error; - } - }; +iterThrows[Symbol.iterator] = function () { + return { + next: function () { + throw error; + } + }; }; -Promise.race(iterThrows).then(function() { - $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError'); -}, function(reason) { - assert.sameValue(reason, error); -}).then($DONE, $DONE); +Promise.race(iterThrows).then(function () { + $ERROR('Promise unexpectedly fulfilled: Promise.race(iterThrows) should throw TypeError'); +}, function (reason) { + assert.sameValue(reason, error); +}).then($DONE,$DONE); + |