diff options
Diffstat (limited to 'test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js')
-rw-r--r-- | test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js index e16e02a03..07c20f570 100644 --- a/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js +++ b/test/built-ins/Promise/race/S25.4.4.3_A3.1_T2.js @@ -11,7 +11,9 @@ author: Sam Mikes description: Promise.race throws TypeError, even on empty array, when 'this' does not conform to Promise constructor ---*/ -function BadPromiseConstructor(f) { f(undefined, undefined); } +function BadPromiseConstructor(f) { + f(undefined, undefined); +} assert.throws(TypeError, function() { Promise.race.call(BadPromiseConstructor, []); |