summaryrefslogtreecommitdiff
path: root/test/built-ins/Promise/reject/capability-executor-called-twice.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Promise/reject/capability-executor-called-twice.js')
-rw-r--r--test/built-ins/Promise/reject/capability-executor-called-twice.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/Promise/reject/capability-executor-called-twice.js b/test/built-ins/Promise/reject/capability-executor-called-twice.js
index 0fc52baa2..f1632f40f 100644
--- a/test/built-ins/Promise/reject/capability-executor-called-twice.js
+++ b/test/built-ins/Promise/reject/capability-executor-called-twice.js
@@ -27,7 +27,7 @@ Promise.reject.call(function(executor) {
checkPoint += "a";
executor();
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
assert.sameValue(checkPoint, "abc", "executor initially called with no arguments");
@@ -37,7 +37,7 @@ Promise.reject.call(function(executor) {
checkPoint += "a";
executor(undefined, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
assert.sameValue(checkPoint, "abc", "executor initially called with (undefined, undefined)");
@@ -46,9 +46,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.reject.call(function(executor) {
checkPoint += "a";
- executor(undefined, function(){});
+ executor(undefined, function() {});
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
}, "executor initially called with (undefined, function)");
@@ -58,9 +58,9 @@ var checkPoint = "";
assert.throws(TypeError, function() {
Promise.reject.call(function(executor) {
checkPoint += "a";
- executor(function(){}, undefined);
+ executor(function() {}, undefined);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
}, "executor initially called with (function, undefined)");
@@ -72,7 +72,7 @@ assert.throws(TypeError, function() {
checkPoint += "a";
executor("invalid value", 123);
checkPoint += "b";
- executor(function(){}, function(){});
+ executor(function() {}, function() {});
checkPoint += "c";
}, {});
}, "executor initially called with (String, Number)");