summaryrefslogtreecommitdiff
path: root/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js')
-rw-r--r--test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js
index f75ee39ed..2241de9c7 100644
--- a/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js
+++ b/test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js
@@ -35,16 +35,16 @@ var p1 = new Promise(function(resolve) {
var p2;
p2 = p1.then(function() {
- return value;
- }, function() {});
+ return value;
+}, function() {});
p2.then(function(x) {
- if (x !== value) {
- $DONE('The `onFulfilled` handler should be invoked with the promise result.');
- return;
- }
+ if (x !== value) {
+ $DONE('The `onFulfilled` handler should be invoked with the promise result.');
+ return;
+ }
- $DONE();
- }, function() {
- $DONE('The `onRejected` handler should not be invoked.');
- });
+ $DONE();
+}, function() {
+ $DONE('The `onRejected` handler should not be invoked.');
+});