diff options
Diffstat (limited to 'test/built-ins/Promise/race/capability-executor-called-twice.js')
-rw-r--r-- | test/built-ins/Promise/race/capability-executor-called-twice.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/Promise/race/capability-executor-called-twice.js b/test/built-ins/Promise/race/capability-executor-called-twice.js index 652f3201c..7e21ce01e 100644 --- a/test/built-ins/Promise/race/capability-executor-called-twice.js +++ b/test/built-ins/Promise/race/capability-executor-called-twice.js @@ -27,7 +27,7 @@ Promise.race.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.race.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.race.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.race.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)"); |