diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js index a2c41a303..982fd8965 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js @@ -9,14 +9,17 @@ description: > (value is NaN) ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return 2; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return 2; +} - var obj = { 0: 9, length: NaN }; +var obj = { + 0: 9, + length: NaN +}; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); assert.sameValue(accessed, false, 'accessed'); |