summaryrefslogtreecommitdiff
path: root/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Promise/prototype/then/rxn-handler-thrower.js')
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-thrower.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js b/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js
index 217e10e4d..58b185a91 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-thrower.js
@@ -12,13 +12,13 @@ flags: [async]
var obj = {};
-var p = Promise.reject(obj).then(/*Identity, Thrower*/)
- .then(function () {
- $DONE("Unexpected fulfillment - promise should reject.");
- }, function (arg) {
- if (arg !== obj) {
- $DONE("Expected reject reason to be obj, actually " + arg);
- return;
- }
- $DONE();
- });
+var p = Promise.reject(obj).then( /*Identity, Thrower*/ )
+ .then(function() {
+ $DONE("Unexpected fulfillment - promise should reject.");
+ }, function(arg) {
+ if (arg !== obj) {
+ $DONE("Expected reject reason to be obj, actually " + arg);
+ return;
+ }
+ $DONE();
+ });