diff options
Diffstat (limited to 'test/built-ins/Promise/resolve-self.js')
-rw-r--r-- | test/built-ins/Promise/resolve-self.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/built-ins/Promise/resolve-self.js b/test/built-ins/Promise/resolve-self.js index 02a75bd27..ed519fa82 100644 --- a/test/built-ins/Promise/resolve-self.js +++ b/test/built-ins/Promise/resolve-self.js @@ -24,20 +24,20 @@ var promise = new Promise(function(_resolve) { }); promise.then(function() { - $DONE('The promise should not be fulfilled.'); - }, function(reason) { - if (!reason) { - $DONE('The promise should be rejected with a value.'); - return; - } + $DONE('The promise should not be fulfilled.'); +}, function(reason) { + if (!reason) { + $DONE('The promise should be rejected with a value.'); + return; + } - if (reason.constructor !== TypeError) { - $DONE('The promise should be rejected with a TypeError instance.'); - return; - } + if (reason.constructor !== TypeError) { + $DONE('The promise should be rejected with a TypeError instance.'); + return; + } - $DONE(); - }); + $DONE(); +}); returnValue = resolve(promise); |