diff options
Diffstat (limited to 'test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js')
-rw-r--r-- | test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js b/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js index 1390a523f..eb82103da 100644 --- a/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js +++ b/test/built-ins/Promise/prototype/finally/rejection-reason-override-with-throw.js @@ -14,13 +14,13 @@ var thrown = {}; var p = Promise.reject(original); -p.finally(function() { +p.finally(function () { sequence.push(1); assert.sameValue(arguments.length, 0, 'onFinally receives zero args'); throw thrown; -}).then(function() { +}).then(function () { $ERROR('promise is rejected; onFulfill should not be called'); -}).catch(function(reason) { +}).catch(function (reason) { sequence.push(2); assert.sameValue(reason, thrown, 'onFinally can override the rejection reason by throwing'); }).then(function() { |