diff options
Diffstat (limited to 'test/built-ins/Array/prototype/every/15.4.4.16-7-6.js')
-rw-r--r-- | test/built-ins/Array/prototype/every/15.4.4.16-7-6.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js index 1cf937c7c..45bcdd29a 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-6.js @@ -9,19 +9,19 @@ description: > call when same index is also present in prototype ---*/ - function callbackfn(val, Idx, obj) - { - delete arr[2]; - if(val == 3) - return false; - else - return true; - } +function callbackfn(val, Idx, obj) +{ + delete arr[2]; + if (val == 3) + return false; + else + return true; +} - Array.prototype[2] = 3; - var arr = [1,2,3,4,5]; +Array.prototype[2] = 3; +var arr = [1, 2, 3, 4, 5]; - var res = arr.every(callbackfn); - delete Array.prototype[2]; +var res = arr.every(callbackfn); +delete Array.prototype[2]; assert.sameValue(res, false, 'res'); |