diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js index 54f2c207a..6fca6c304 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js @@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-3 description: Array.prototype.reduceRight applied to boolean primitive ---*/ - var accessed = false; +var accessed = false; - function callbackfn(prevVal, curVal, idx, obj) { - accessed = true; - return obj instanceof Boolean; - } +function callbackfn(prevVal, curVal, idx, obj) { + accessed = true; + return obj instanceof Boolean; +} - Boolean.prototype[0] = 1; - Boolean.prototype.length = 1; +Boolean.prototype[0] = 1; +Boolean.prototype.length = 1; assert(Array.prototype.reduceRight.call(false, callbackfn, 1), 'Array.prototype.reduceRight.call(false, callbackfn, 1) !== true'); assert(accessed, 'accessed !== true'); |