summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype')
-rw-r--r--test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js42
-rw-r--r--test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js44
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js6
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js14
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js7
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js12
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js7
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js4
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js4
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js4
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js4
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js8
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js8
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js8
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js4
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js2
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js4
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js4
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js2
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js2
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js4
-rw-r--r--test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js9
-rw-r--r--test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js6
-rw-r--r--test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js4
-rw-r--r--test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js2
-rw-r--r--test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js4
-rw-r--r--test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js4
-rw-r--r--test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js4
-rw-r--r--test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js1
-rw-r--r--test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js1
-rw-r--r--test/built-ins/Array/prototype/concat/create-non-array.js4
-rw-r--r--test/built-ins/Array/prototype/copyWithin/coerced-values-end.js18
-rw-r--r--test/built-ins/Array/prototype/copyWithin/coerced-values-start.js24
-rw-r--r--test/built-ins/Array/prototype/copyWithin/coerced-values-target.js24
-rw-r--r--test/built-ins/Array/prototype/copyWithin/negative-end.js24
-rw-r--r--test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js30
-rw-r--r--test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js24
-rw-r--r--test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js12
-rw-r--r--test/built-ins/Array/prototype/copyWithin/negative-start.js18
-rw-r--r--test/built-ins/Array/prototype/copyWithin/negative-target.js9
-rw-r--r--test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js12
-rw-r--r--test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js45
-rw-r--r--test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js12
-rw-r--r--test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js15
-rw-r--r--test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js1
-rw-r--r--test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js1
-rw-r--r--test/built-ins/Array/prototype/copyWithin/undefined-end.js6
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-1-4.js1
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-1-5.js1
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-1-6.js1
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-1-9.js2
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-10.js8
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-11.js2
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-12.js17
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-13.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-14.js5
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-17.js4
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-19.js2
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-3.js6
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-4.js1
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-5.js8
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-6.js6
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-7.js6
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-8.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-2-9.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-1.js5
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-10.js5
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-11.js7
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-12.js7
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-13.js7
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-14.js19
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-15.js7
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-16.js7
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-17.js7
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-18.js6
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-19.js20
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-2.js6
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-20.js8
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-21.js28
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-22.js44
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-23.js68
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-24.js19
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-25.js24
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-29.js22
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-3.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-4.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-5.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-6.js19
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-7.js19
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-8.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-3-9.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-1.js4
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-10.js19
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-11.js27
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-12.js6
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-15.js38
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-3.js4
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-4.js4
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-5.js4
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-6.js4
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-7.js4
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-8.js23
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-4-9.js31
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js14
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-1.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-10.js12
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-11.js12
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-12.js12
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-13.js12
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-14.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-15.js12
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-16.js12
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-17.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-18.js12
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-19.js18
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-2.js17
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-21.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-22.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-23.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-24.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-3.js17
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-4.js21
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-5.js21
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-6.js19
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-7.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-5-9.js12
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-1.js20
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-2.js18
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-3.js18
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-4.js18
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-5.js22
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-6.js24
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-7.js18
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-8.js16
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-9.js30
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js19
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js32
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js29
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js37
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js32
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js27
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js42
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js42
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js30
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js30
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js42
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js40
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js42
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js40
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js41
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js39
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js22
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js28
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js39
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js30
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js58
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js40
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js36
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js26
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js22
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js20
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js24
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js22
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js28
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js18
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js16
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js28
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js28
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js44
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js46
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js29
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js36
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js35
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js46
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js22
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js28
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js16
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js31
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js12
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js17
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js14
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js19
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js26
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js26
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js16
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js21
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js25
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js34
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js23
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js25
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js18
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js56
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js10
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-1.js4
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-10.js25
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-11.js15
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-12.js12
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-13.js19
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-2.js13
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-3.js13
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-4.js13
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-5.js13
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-6.js19
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-7.js29
-rw-r--r--test/built-ins/Array/prototype/every/15.4.4.16-8-8.js45
-rw-r--r--test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js2
-rw-r--r--test/built-ins/Array/prototype/fill/fill-values.js3
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js2
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js2
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js16
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js16
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js10
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js15
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js19
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js20
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js34
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js29
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js38
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js41
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js10
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js20
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js26
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js52
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js24
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js28
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js36
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js46
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js19
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js17
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js26
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js26
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js40
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js44
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js48
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js4
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js19
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js27
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js38
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js4
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js4
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js4
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js4
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js4
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js4
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js23
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js31
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js16
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js20
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js19
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js2
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js2
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js2
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js19
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js20
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js21
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js21
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js19
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js4
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js13
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js13
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js13
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js13
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js19
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js29
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js45
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js22
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js22
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js26
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js20
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js32
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js19
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js29
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js26
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js31
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js26
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js24
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js36
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js36
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js24
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js27
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js36
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js34
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js36
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js34
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js42
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js36
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js16
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js22
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js33
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js24
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js52
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js34
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js30
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js20
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js20
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js22
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js20
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js26
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js16
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js26
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js30
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js46
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js48
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js23
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js36
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js35
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js10
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js50
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js20
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js22
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js10
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js25
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js23
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js13
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js13
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js13
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js19
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js21
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js17
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js26
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js26
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js13
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js27
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js36
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js21
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js25
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js20
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js14
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js31
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js27
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js36
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js16
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js17
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js9
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js18
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js17
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js8
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js17
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js13
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js12
-rw-r--r--test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js8
-rw-r--r--test/built-ins/Array/prototype/filter/create-ctor-non-object.js4
-rw-r--r--test/built-ins/Array/prototype/filter/create-ctor-poisoned.js4
-rw-r--r--test/built-ins/Array/prototype/filter/create-non-array.js4
-rw-r--r--test/built-ins/Array/prototype/filter/create-revoked-proxy.js4
-rw-r--r--test/built-ins/Array/prototype/filter/create-species-abrupt.js4
-rw-r--r--test/built-ins/Array/prototype/filter/create-species-non-ctor.js4
-rw-r--r--test/built-ins/Array/prototype/filter/create-species-poisoned.js4
-rw-r--r--test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js20
-rw-r--r--test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js20
-rw-r--r--test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js20
-rw-r--r--test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js20
-rw-r--r--test/built-ins/Array/prototype/flatMap/bound-function-argument.js4
-rw-r--r--test/built-ins/Array/prototype/flatMap/depth-always-one.js4
-rw-r--r--test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js2
-rw-r--r--test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js1
-rw-r--r--test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js1
-rw-r--r--test/built-ins/Array/prototype/flatMap/thisArg-argument.js24
-rw-r--r--test/built-ins/Array/prototype/flatten/bound-function-call.js5
-rw-r--r--test/built-ins/Array/prototype/flatten/empty-array-elements.js15
-rw-r--r--test/built-ins/Array/prototype/flatten/empty-object-elements.js12
-rw-r--r--test/built-ins/Array/prototype/flatten/name.js1
-rw-r--r--test/built-ins/Array/prototype/flatten/null-undefined-elements.js11
-rw-r--r--test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js1
-rw-r--r--test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js1
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js2
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js14
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js17
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js17
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js15
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js17
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js17
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js2
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js14
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js19
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js15
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js19
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js13
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js21
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js23
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js37
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js27
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js36
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js30
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js15
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js19
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js13
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js23
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js29
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js17
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js55
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js27
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js31
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js39
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js49
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js15
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js15
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js15
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js28
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js17
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js28
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js42
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js42
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js64
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js20
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js20
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js15
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js15
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js15
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js4
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js19
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js27
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js38
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js4
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js4
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js4
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js4
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js4
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js4
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js23
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js31
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js14
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js19
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js12
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js12
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js12
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js12
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js12
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js12
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js12
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js18
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js21
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js10
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js23
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js21
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js23
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js23
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js21
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js10
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js12
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js19
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js19
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js17
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js21
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js21
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js18
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js31
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js17
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js39
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js36
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js36
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js32
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js34
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js42
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js52
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js30
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js37
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js42
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js40
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js42
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js40
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js58
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js56
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js21
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js28
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js38
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js30
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js48
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js50
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js36
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js26
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js26
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js24
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js48
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js14
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js36
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js32
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js22
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js20
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js38
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js42
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js52
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js54
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js30
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js47
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js46
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js56
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js26
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js28
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js31
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js23
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js16
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js26
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js21
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js20
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js28
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js28
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js15
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js27
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js32
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js23
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js27
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js26
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js9
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js18
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js12
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js19
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js11
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js18
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js18
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js18
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js18
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js24
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js34
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js44
-rw-r--r--test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js50
-rw-r--r--test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js4
-rw-r--r--test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js4
-rw-r--r--test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js2
-rw-r--r--test/built-ins/Array/prototype/includes/search-not-found-returns-false.js4
-rw-r--r--test/built-ins/Array/prototype/includes/sparse.js6
-rw-r--r--test/built-ins/Array/prototype/includes/tolength-length.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js14
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js15
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js26
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js24
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js14
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js32
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js24
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js34
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js20
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js38
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js14
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js5
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js20
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js24
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js26
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js40
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js48
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js38
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js14
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js14
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js20
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js20
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js26
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js21
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js23
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js17
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js26
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js7
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js40
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js16
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js26
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js28
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js36
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js48
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js22
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js30
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js10
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js38
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js40
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js2
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js32
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js34
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js8
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js12
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js18
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js38
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js4
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js6
-rw-r--r--test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js36
-rw-r--r--test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js2
-rw-r--r--test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js2
-rw-r--r--test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js2
-rw-r--r--test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js16
-rw-r--r--test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js2
-rw-r--r--test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js66
-rw-r--r--test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js4
-rw-r--r--test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js84
-rw-r--r--test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js24
-rw-r--r--test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js66
-rw-r--r--test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js4
-rw-r--r--test/built-ins/Array/prototype/keys/iteration-mutable.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js24
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js12
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js24
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js18
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js5
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js12
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js10
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js14
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js30
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js14
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js17
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js24
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js34
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js5
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js7
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js30
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js20
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js32
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js32
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js38
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js14
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js5
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js5
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js5
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js5
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js13
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js33
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js30
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js22
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js12
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js24
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js26
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js30
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js40
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js48
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js16
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js30
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js38
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js10
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js16
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js14
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js10
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js12
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js20
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js10
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js18
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js16
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js26
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js30
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js28
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js21
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js18
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js23
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js18
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js16
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js28
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js28
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js18
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js18
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js18
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js17
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js18
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js28
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js26
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js28
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js7
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js40
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js16
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js18
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js26
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js28
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js36
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js48
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js10
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js12
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js24
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js22
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js12
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js10
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js38
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js40
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js2
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js32
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js34
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js8
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js12
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js18
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js18
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js38
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js4
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js6
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js36
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js14
-rw-r--r--test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js15
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-1.js2
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-10.js12
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-11.js14
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-12.js14
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-13.js12
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-14.js14
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-15.js14
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-2.js2
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-3.js12
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-4.js16
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-5.js12
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-6.js16
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-7.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-8.js10
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-1-9.js18
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-1.js20
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-10.js34
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-11.js24
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-12.js33
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-13.js28
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-14.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-17.js14
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-18.js12
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-19.js20
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-2.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-3.js26
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-4.js14
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-5.js52
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-6.js24
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-7.js28
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-8.js36
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-2-9.js46
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-1.js12
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-10.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-11.js15
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-12.js15
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-13.js15
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-14.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-15.js15
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-16.js15
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-17.js15
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-18.js12
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-19.js26
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-2.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-20.js26
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-21.js40
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-22.js32
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-23.js48
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-24.js18
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-25.js18
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-28.js16
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-29.js18
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-3.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-4.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-5.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-6.js15
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-7.js15
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-8.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-3-9.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-1.js4
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-10.js19
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-11.js27
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-12.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-15.js38
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-2.js4
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-3.js4
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-4.js4
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-5.js4
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-6.js4
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-7.js4
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-8.js23
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-4-9.js31
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js14
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-1.js16
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-10.js10
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-11.js10
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-12.js10
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-13.js10
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-14.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-15.js10
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-16.js10
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-17.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-18.js10
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-19.js16
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-2.js19
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-21.js9
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-22.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-23.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-24.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-3.js19
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-4.js21
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-5.js21
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-6.js19
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-7.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-5-9.js10
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-6-1.js2
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-6-2.js2
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-1.js16
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-2.js20
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-3.js20
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-4.js19
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-5.js23
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-6.js24
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-7.js20
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-8.js19
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-9.js29
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js19
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js29
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js26
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js39
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js34
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js24
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js44
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js44
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js32
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js35
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js44
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js42
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js44
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js42
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js46
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js44
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js21
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js30
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js39
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js32
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js64
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js52
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js38
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js28
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js26
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js24
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js36
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js18
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js56
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js32
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js22
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js22
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js26
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js30
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js58
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js60
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js29
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js47
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js46
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js18
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js58
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js28
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js27
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js16
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js32
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js23
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js26
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js21
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js18
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js26
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js26
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js27
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js32
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js21
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js27
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js20
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js8
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js16
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js14
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js18
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js31
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js18
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-1.js12
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-10.js28
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-11.js32
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-12.js38
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-13.js14
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-2.js12
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-3.js13
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-4.js19
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-5.js14
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-6.js16
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-7.js20
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-8.js20
-rw-r--r--test/built-ins/Array/prototype/map/15.4.4.19-9-9.js20
-rw-r--r--test/built-ins/Array/prototype/map/create-ctor-non-object.js4
-rw-r--r--test/built-ins/Array/prototype/map/create-ctor-poisoned.js4
-rw-r--r--test/built-ins/Array/prototype/map/create-non-array-invalid-len.js4
-rw-r--r--test/built-ins/Array/prototype/map/create-non-array.js4
-rw-r--r--test/built-ins/Array/prototype/map/create-revoked-proxy.js4
-rw-r--r--test/built-ins/Array/prototype/map/create-species-abrupt.js4
-rw-r--r--test/built-ins/Array/prototype/map/create-species-non-ctor.js4
-rw-r--r--test/built-ins/Array/prototype/map/create-species-poisoned.js4
-rw-r--r--test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js4
-rw-r--r--test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js2
-rw-r--r--test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js2
-rw-r--r--test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js18
-rw-r--r--test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js2
-rw-r--r--test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js68
-rw-r--r--test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js4
-rw-r--r--test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js4
-rw-r--r--test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js2
-rw-r--r--test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js4
-rw-r--r--test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js7
-rw-r--r--test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js14
-rw-r--r--test/built-ins/Array/prototype/pop/length-near-integer-limit.js14
-rw-r--r--test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js26
-rw-r--r--test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js4
-rw-r--r--test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js68
-rw-r--r--test/built-ins/Array/prototype/push/S15.4.4.7_A3.js6
-rw-r--r--test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js12
-rw-r--r--test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js6
-rw-r--r--test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js12
-rw-r--r--test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js4
-rw-r--r--test/built-ins/Array/prototype/push/clamps-to-integer-limit.js14
-rw-r--r--test/built-ins/Array/prototype/push/length-near-integer-limit.js12
-rw-r--r--test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js6
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js2
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js10
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js10
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js2
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js10
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js14
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js10
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js14
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js6
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js8
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js10
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js9
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js11
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js21
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js18
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js32
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js25
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js34
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js28
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js14
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js8
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js18
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js6
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js24
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js40
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js22
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js26
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js34
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js56
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-10.js15
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js15
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js24
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js24
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js38
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js44
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js58
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js15
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js15
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js4
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js19
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js27
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js11
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js38
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js4
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js4
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js4
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js4
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js4
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js4
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js23
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js31
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js4
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js29
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js37
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js25
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js33
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js19
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js29
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js39
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js9
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js4
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js4
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js4
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js19
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js29
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js39
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js39
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js22
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js26
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js62
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js18
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js21
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js22
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js28
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js51
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js30
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js65
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js41
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js40
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js29
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js29
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js25
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js31
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js17
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js27
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js36
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js25
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js21
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js23
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js25
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js17
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js29
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js34
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js61
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js63
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js37
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js33
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js17
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js57
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js27
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js30
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js21
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js33
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js9
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js13
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js19
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js14
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js20
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js28
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js24
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js14
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js14
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js15
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js20
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js12
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js31
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js29
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js9
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js39
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js36
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js37
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js32
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js34
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js42
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js52
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js42
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js40
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js42
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js30
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js40
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js59
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js56
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js39
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js36
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js37
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js32
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js34
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js42
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js52
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js37
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js42
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js40
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js42
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js40
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js59
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js34
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js17
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js24
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js31
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js53
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js33
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js66
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js43
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js52
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js31
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js31
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js27
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js51
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js19
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js39
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js38
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js27
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js23
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js23
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js23
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js19
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js31
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js36
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js63
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js66
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js39
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js35
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js19
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js49
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js29
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js32
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js23
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js35
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js11
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js11
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js11
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js11
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js11
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js33
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js25
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js21
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js19
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js27
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js18
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js18
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js18
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js18
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js18
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js23
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js18
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js18
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js18
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js23
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js16
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js17
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js26
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js36
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js27
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js27
-rw-r--r--test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js11
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js2
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js14
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js14
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js2
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-3.js14
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js14
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js10
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js12
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js20
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js12
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js10
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js9
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js11
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js12
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js19
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js22
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js36
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js26
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js35
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js30
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js15
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js20
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js14
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js22
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js10
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js28
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js17
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js44
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js26
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js30
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js38
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js48
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js32
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js32
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js32
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js32
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js32
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js32
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js14
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js67
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js57
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js67
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js42
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js78
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js32
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js37
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js31
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js31
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js19
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js27
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js11
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js38
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js23
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js31
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js23
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js31
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js19
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js27
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js19
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js39
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js4
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js19
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js39
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js39
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js22
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js62
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js21
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js21
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js51
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js31
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js64
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js49
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js40
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js25
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js31
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js17
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js27
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js36
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js25
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js21
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js21
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js21
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js17
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js27
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js34
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js61
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js64
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js33
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js17
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js59
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js27
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js28
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js21
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js33
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js9
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js13
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js19
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js14
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js20
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js28
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js24
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js12
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js14
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js14
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js12
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js15
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js20
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js12
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js25
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js9
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js39
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js36
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js36
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js32
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js34
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js42
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js52
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js42
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js40
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js42
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js30
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js40
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js59
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js56
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js39
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js36
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js37
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js32
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js34
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js42
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js52
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js37
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js42
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js40
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js42
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js40
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js59
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js56
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js17
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js22
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js51
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js31
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js64
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js41
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js40
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js25
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js31
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js17
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js27
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js36
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js25
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js21
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js21
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js21
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js17
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js31
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js34
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js61
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js63
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js33
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js17
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js57
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js27
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js29
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js21
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js33
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js10
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js14
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js6
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js21
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js24
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js20
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js22
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js23
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js18
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js23
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js16
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js17
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js26
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js38
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js27
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js23
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js10
-rw-r--r--test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js2
-rw-r--r--test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js38
-rw-r--r--test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js38
-rw-r--r--test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js38
-rw-r--r--test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js38
-rw-r--r--test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js4
-rw-r--r--test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js7
-rw-r--r--test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js10
-rw-r--r--test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js6
-rw-r--r--test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js2
-rw-r--r--test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js2
-rw-r--r--test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js18
-rw-r--r--test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js2
-rw-r--r--test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js68
-rw-r--r--test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js4
-rw-r--r--test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js4
-rw-r--r--test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js7
-rw-r--r--test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js14
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js2
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js2
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js11
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js11
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js2
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js2
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js2
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js2
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js4
-rw-r--r--test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js4
-rw-r--r--test/built-ins/Array/prototype/slice/create-non-array.js4
-rw-r--r--test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js22
-rw-r--r--test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js22
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-1.js2
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-10.js10
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-11.js14
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-12.js14
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-13.js10
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-14.js12
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-15.js12
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-2.js2
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-3.js10
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-4.js14
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-5.js10
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-6.js14
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-7.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-8.js8
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-1-9.js16
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-1.js24
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-10.js48
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-11.js26
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-12.js35
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-13.js30
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-14.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-17.js22
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-18.js16
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-19.js24
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-2.js14
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-3.js30
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-4.js21
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-5.js58
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-6.js28
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-7.js32
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-8.js40
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-2-9.js64
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-1.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-10.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-11.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-12.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-13.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-14.js25
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-15.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-16.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-17.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-18.js16
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-19.js36
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-2.js18
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-20.js36
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-21.js46
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-22.js44
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-23.js68
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-24.js24
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-25.js24
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-28.js18
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-29.js22
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-3.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-4.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-5.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-6.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-7.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-8.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-3-9.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-1.js4
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-10.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-11.js27
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-12.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-15.js36
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-2.js4
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-3.js4
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-4.js4
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-5.js4
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-6.js4
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-7.js4
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-8.js23
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-4-9.js31
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js14
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-1.js14
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-10.js8
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-11.js8
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-12.js8
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-13.js8
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-14.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-15.js8
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-16.js8
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-17.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-18.js8
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-19.js14
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-2.js17
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-21.js7
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-22.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-23.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-24.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-25.js18
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-3.js17
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-4.js21
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-5.js21
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-6.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-7.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-5-9.js8
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-1.js20
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-2.js18
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-3.js18
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-4.js18
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-5.js22
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-6.js24
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-8.js16
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-9.js30
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js32
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js29
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js37
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js32
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js27
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js42
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js42
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js30
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js30
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js42
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js40
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js42
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js40
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js41
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js39
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js28
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js48
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js30
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js60
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js40
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js36
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js26
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js24
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js22
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js26
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js14
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js24
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js30
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js20
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js18
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js32
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js40
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js48
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js50
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js28
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js33
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js33
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js16
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js54
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js26
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js26
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js16
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js30
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js16
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js11
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js11
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js12
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js17
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js18
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js30
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js30
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js12
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js21
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js24
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js30
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js13
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js29
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js18
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js10
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js10
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js7
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js65
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js11
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js10
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js10
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js10
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js6
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-1.js4
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-10.js25
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-11.js15
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-12.js12
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-13.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-2.js13
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-3.js13
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-4.js13
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-5.js13
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-6.js19
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-7.js29
-rw-r--r--test/built-ins/Array/prototype/some/15.4.4.17-8-8.js45
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js2
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js2
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js4
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js2
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js11
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js4
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js4
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js11
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js24
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js26
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js6
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js7
-rw-r--r--test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js4
-rw-r--r--test/built-ins/Array/prototype/sort/bug_596_1.js8
-rw-r--r--test/built-ins/Array/prototype/sort/bug_596_2.js18
-rw-r--r--test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js2
-rw-r--r--test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js4
-rw-r--r--test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js36
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js2
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js11
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js11
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js9
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js7
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js7
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js9
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js8
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js8
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js11
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js11
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js4
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js6
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js2
-rw-r--r--test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js16
-rw-r--r--test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js14
-rw-r--r--test/built-ins/Array/prototype/splice/create-non-array.js4
-rw-r--r--test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js10
-rw-r--r--test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js20
-rw-r--r--test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js22
-rw-r--r--test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js18
-rw-r--r--test/built-ins/Array/prototype/splice/set_length_no_args.js3
-rw-r--r--test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js6
-rw-r--r--test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js6
-rw-r--r--test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js6
-rw-r--r--test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js2
-rw-r--r--test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js4
-rw-r--r--test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js34
-rw-r--r--test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js66
-rw-r--r--test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js26
-rw-r--r--test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js66
-rw-r--r--test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js8
-rw-r--r--test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js4
-rw-r--r--test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js14
-rw-r--r--test/built-ins/Array/prototype/unshift/length-near-integer-limit.js18
-rw-r--r--test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js6
-rw-r--r--test/built-ins/Array/prototype/values/iteration-mutable.js2
2074 files changed, 18377 insertions, 21630 deletions
diff --git a/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js b/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js
index 3910be2f0..121bcd6df 100644
--- a/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js
+++ b/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js
@@ -9,33 +9,33 @@ description: >
(read-only) exists in Array.prototype (Step 5.b.iii.3.b)
---*/
-Object.defineProperty(Array.prototype, "0", {
- value: 100,
- writable: false,
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ value: 100,
+ writable: false,
+ configurable: true
+ });
-var oldArr = [101];
+ var oldArr = [101];
-var newArr = Array.prototype.concat.call(oldArr);
+ var newArr = Array.prototype.concat.call(oldArr);
-var verifyValue = false;
-verifyValue = newArr[0] === 101;
+ var verifyValue = false;
+ verifyValue = newArr[0] === 101;
-var verifyEnumerable = false;
-for (var p in newArr) {
- if (p === "0" && newArr.hasOwnProperty("0")) {
- verifyEnumerable = true;
- }
-}
+ var verifyEnumerable = false;
+ for (var p in newArr) {
+ if (p === "0" && newArr.hasOwnProperty("0")) {
+ verifyEnumerable = true;
+ }
+ }
-var verifyWritable = false;
-newArr[0] = 12;
-verifyWritable = newArr[0] === 12;
+ var verifyWritable = false;
+ newArr[0] = 12;
+ verifyWritable = newArr[0] === 12;
-var verifyConfigurable = false;
-delete newArr[0];
-verifyConfigurable = newArr.hasOwnProperty("0");
+ var verifyConfigurable = false;
+ delete newArr[0];
+ verifyConfigurable = newArr.hasOwnProperty("0");
assert(verifyValue, 'verifyValue !== true');
assert.sameValue(verifyConfigurable, false, 'verifyConfigurable');
diff --git a/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js b/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js
index 61ecb1a26..f51ca7107 100644
--- a/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js
+++ b/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js
@@ -9,35 +9,35 @@ description: >
(read-only) exists in Array.prototype (Step 5.c.i)
---*/
-Object.defineProperty(Array.prototype, "0", {
- value: 100,
- writable: false,
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ value: 100,
+ writable: false,
+ configurable: true
+ });
-var newArr = Array.prototype.concat.call(101);
+ var newArr = Array.prototype.concat.call(101);
-var hasProperty = newArr.hasOwnProperty("0");
+ var hasProperty = newArr.hasOwnProperty("0");
-var instanceOfVerify = typeof newArr[0] === "object";
+ var instanceOfVerify = typeof newArr[0]==="object";
-var verifyValue = false;
-verifyValue = newArr[0] == 101;
+ var verifyValue = false;
+ verifyValue = newArr[0] == 101;
-var verifyEnumerable = false;
-for (var p in newArr) {
- if (p === "0" && newArr.hasOwnProperty("0")) {
- verifyEnumerable = true;
- }
-}
+ var verifyEnumerable = false;
+ for (var p in newArr) {
+ if (p === "0" && newArr.hasOwnProperty("0")) {
+ verifyEnumerable = true;
+ }
+ }
-var verifyWritable = false;
-newArr[0] = 12;
-verifyWritable = newArr[0] === 12;
+ var verifyWritable = false;
+ newArr[0] = 12;
+ verifyWritable = newArr[0] === 12;
-var verifyConfigurable = false;
-delete newArr[0];
-verifyConfigurable = newArr.hasOwnProperty("0");
+ var verifyConfigurable = false;
+ delete newArr[0];
+ verifyConfigurable = newArr.hasOwnProperty("0");
assert(hasProperty, 'hasProperty !== true');
assert(instanceOfVerify, 'instanceOfVerify !== true');
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js
index 3baf72a4a..00fea1dd7 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js
@@ -10,11 +10,9 @@ features: [Symbol.isConcatSpreadable]
---*/
function MyError() {}
var obj = {
- "length": {
- toString: function() {
+ "length": { toString: function() {
throw new MyError();
- },
- valueOf: null
+ }, valueOf: null
},
"1": "A",
"3": "B",
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js
index 82cf5a767..14de922be 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js
@@ -15,17 +15,7 @@ var obj = {
"5": "C"
};
obj[Symbol.isConcatSpreadable] = true;
-obj.length = {
- toString: function() {
- return "SIX";
- },
- valueOf: null
-};
+obj.length = {toString: function() { return "SIX"; }, valueOf: null };
assert(compareArray([].concat(obj), []));
-obj.length = {
- toString: null,
- valueOf: function() {
- return "SIX";
- }
-};
+obj.length = {toString: null, valueOf: function() { return "SIX"; } };
assert(compareArray([].concat(obj), []));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js
index 8b94d6594..1c63b62f4 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js
@@ -16,12 +16,7 @@ var obj = {
"5": "C"
};
obj[Symbol.isConcatSpreadable] = true;
-var obj2 = {
- length: 3,
- "0": "0",
- "1": "1",
- "2": "2"
-};
+var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" };
var arr = ["X", "Y", "Z"];
var expected = [
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js
index 907a30b7b..0322eaf1e 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js
@@ -9,21 +9,13 @@ description: Array.prototype.concat array like to length throws
features: [Symbol.isConcatSpreadable]
---*/
var obj = {
- "length": {
- valueOf: null,
- toString: null
- },
+ "length": {valueOf: null, toString: null},
"1": "A",
"3": "B",
"5": "C"
};
obj[Symbol.isConcatSpreadable] = true;
-var obj2 = {
- length: 3,
- "0": "0",
- "1": "1",
- "2": "2"
-};
+var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" };
var arr = ["X", "Y", "Z"];
assert.throws(TypeError, function() {
Array.prototype.concat.call(obj, obj2, arr);
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js
index bfdf3c8e9..3b747f931 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js
@@ -17,12 +17,7 @@ var obj = {
"5": "C"
};
obj[Symbol.isConcatSpreadable] = true;
-var obj2 = {
- length: 3,
- "0": "0",
- "1": "1",
- "2": "2"
-};
+var obj2 = { length: 3, "0": "0", "1": "1", "2": "2" };
var arr = ["X", "Y", "Z"];
var expected = [
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js
index 44082769b..d8bab8d4a 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js
@@ -10,9 +10,7 @@ description: Array.prototype.concat holey sloppy arguments
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
-var args = (function(a) {
- return arguments;
-})(1, 2, 3);
+var args = (function(a) { return arguments; })(1,2,3);
delete args[1];
args[Symbol.isConcatSpreadable] = true;
assert(compareArray([1, void 0, 3, 1, void 0, 3], [].concat(args, args)));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js
index cb37746a2..dcf593907 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js
@@ -31,9 +31,7 @@ function concatTypedArray(type, elems, modulo) {
var expected = new Array(4000);
expected[0] = defValue;
- Object.defineProperty(ta, "length", {
- value: 4000
- });
+ Object.defineProperty(ta, "length", { value: 4000 });
ta[Symbol.isConcatSpreadable] = true;
assert(compareArray([].concat(ta), expected));
}
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js
index c040d94a1..3aef5b782 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js
@@ -13,9 +13,7 @@ function MyError() {}
var obj = {};
obj[Symbol.isConcatSpreadable] = true;
Object.defineProperty(obj, "length", {
- get: function() {
- throw new MyError();
- }
+ get: function() { throw new MyError(); }
});
assert.throws(MyError, function() {
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js
index bd080ee42..f6ed9cf11 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js
@@ -19,8 +19,8 @@ class NonArray {
}
}
-var obj = new NonArray(1, 2, 3);
+var obj = new NonArray(1,2,3);
var result = Array.prototype.concat.call(obj, 4, 5, 6);
assert.sameValue(Array, result.constructor);
assert.sameValue(result instanceof NonArray, false);
-assert(compareArray(result, [obj, 4, 5, 6]));
+assert(compareArray(result, [obj,4,5,6]));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js
index 605330051..8aefe98da 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js
@@ -10,13 +10,9 @@ description: Array.prototype.concat sloppy arguments throws
features: [Symbol.isConcatSpreadable]
---*/
function MyError() {}
-var args = (function(a) {
- return arguments;
-})(1, 2, 3);
+var args = (function(a) { return arguments; })(1,2,3);
Object.defineProperty(args, 0, {
- get: function() {
- throw new MyError();
- }
+ get: function() { throw new MyError(); }
});
args[Symbol.isConcatSpreadable] = true;
assert.throws(MyError, function() {
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js
index a6bca8a0d..effb606b3 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js
@@ -11,13 +11,9 @@ flags: [noStrict]
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
-var args = (function(a, a, a) {
- return arguments;
-})(1, 2, 3);
+var args = (function(a, a, a) { return arguments; })(1,2,3);
args[Symbol.isConcatSpreadable] = true;
assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3]));
-Object.defineProperty(args, "length", {
- value: 6
-});
+Object.defineProperty(args, "length", { value: 6 });
assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0]));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js
index 54e80acef..d80545620 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js
@@ -10,13 +10,9 @@ description: Array.prototype.concat sloppy arguments
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
-var args = (function(a, b, c) {
- return arguments;
-})(1, 2, 3);
+var args = (function(a, b, c) { return arguments; })(1,2,3);
args[Symbol.isConcatSpreadable] = true;
assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3]));
-Object.defineProperty(args, "length", {
- value: 6
-});
+Object.defineProperty(args, "length", { value: 6 });
assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0]));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js
index 1d5c1ecbb..09fc40e0b 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js
@@ -31,9 +31,7 @@ function concatTypedArray(type, elems, modulo) {
var expected = new Array(4000);
expected[0] = defValue;
- Object.defineProperty(ta, "length", {
- value: 4000
- });
+ Object.defineProperty(ta, "length", { value: 4000 });
ta[Symbol.isConcatSpreadable] = true;
assert(compareArray([].concat(ta), expected));
}
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js
index ed021358f..00ec7689b 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js
@@ -27,7 +27,7 @@ Boolean.prototype[0] = 1;
Boolean.prototype[1] = 2;
Boolean.prototype[2] = 3;
Boolean.prototype.length = 3;
-assert(compareArray([1, 2, 3], [].concat(new Boolean(true))));
+assert(compareArray([1,2,3], [].concat(new Boolean(true))));
// Boolean values are never concat-spreadable
assert(compareArray([true], [].concat(true)));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js
index 8ed6bf21c..5b5b5aca4 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js
@@ -21,11 +21,11 @@ assert(compareArray([1, 2, 3], [].concat(fn)));
Function.prototype[Symbol.isConcatSpreadable] = true;
// Functions may be concat-spreadable
-assert(compareArray([void 0, void 0, void 0], [].concat(function(a, b, c) {})));
+assert(compareArray([void 0, void 0, void 0], [].concat(function(a,b,c) {})));
Function.prototype[0] = 1;
Function.prototype[1] = 2;
Function.prototype[2] = 3;
-assert(compareArray([1, 2, 3], [].concat(function(a, b, c) {})));
+assert(compareArray([1,2,3], [].concat(function(a, b, c) {})));
delete Function.prototype[Symbol.isConcatSpreadable];
delete Function.prototype[0];
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js
index 8a0b64dee..626f6d292 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js
@@ -12,9 +12,7 @@ features: [Symbol.isConcatSpreadable]
function MyError() {}
var obj = {};
Object.defineProperty(obj, Symbol.isConcatSpreadable, {
- get: function() {
- throw new MyError();
- }
+ get: function() { throw new MyError(); }
});
assert.throws(MyError, function() {
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js
index d28acb7d1..9ea803b4b 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js
@@ -27,7 +27,7 @@ Number.prototype[0] = 1;
Number.prototype[1] = 2;
Number.prototype[2] = 3;
Number.prototype.length = 3;
-assert(compareArray([1, 2, 3], [].concat(new Number(123))));
+assert(compareArray([1,2,3], [].concat(new Number(123))));
// Number values are never concat-spreadable
assert(compareArray([true], [].concat(true)));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js
index 6a11c8eca..4003fe33c 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js
@@ -27,7 +27,7 @@ assert(compareArray([].concat(/abc/), [void 0, void 0, void 0]));
RegExp.prototype[0] = 1;
RegExp.prototype[1] = 2;
RegExp.prototype[2] = 3;
-assert(compareArray([].concat(/abc/), [1, 2, 3]));
+assert(compareArray([].concat(/abc/), [1,2,3]));
delete RegExp.prototype[Symbol.isConcatSpreadable];
delete RegExp.prototype[0];
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js
index 1c4aa7f2d..4b3f40d18 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js
@@ -10,9 +10,7 @@ description: Array.prototype.concat Symbol.isConcatSpreadable sparse object
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
-var obj = {
- length: 5
-};
+var obj = { length: 5 };
obj[Symbol.isConcatSpreadable] = true;
assert(compareArray([void 0, void 0, void 0, void 0, void 0], [].concat(obj)));
diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js
index 49dfc415c..2d8b5868a 100644
--- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js
+++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js
@@ -10,14 +10,9 @@ description: Array.prototype.concat strict arguments
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
-var args = (function(a, b, c) {
- "use strict";
- return arguments;
-})(1, 2, 3);
+var args = (function(a, b, c) { "use strict"; return arguments; })(1,2,3);
args[Symbol.isConcatSpreadable] = true;
assert(compareArray([].concat(args, args), [1, 2, 3, 1, 2, 3]));
-Object.defineProperty(args, "length", {
- value: 6
-});
+Object.defineProperty(args, "length", { value: 6 });
assert(compareArray([].concat(args), [1, 2, 3, void 0, void 0, void 0]));
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js
index e06836b67..7a590596d 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js
@@ -12,9 +12,9 @@ description: Checking this algorithm, items are Array object
---*/
var x = new Array();
-var y = new Array(0, 1);
-var z = new Array(2, 3, 4);
-var arr = x.concat(y, z);
+var y = new Array(0,1);
+var z = new Array(2,3,4);
+var arr = x.concat(y,z);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js
index 100ecaa9d..4024275a2 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js
@@ -13,8 +13,8 @@ description: Checking this algorithm, items are objects and primitives
var x = [0];
var y = new Object();
-var z = new Array(1, 2);
-var arr = x.concat(y, z, -1, true, "NaN");
+var z = new Array(1,2);
+var arr = x.concat(y,z, -1, true, "NaN");
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js
index 82a8d6f00..bb88eba5e 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js
@@ -11,7 +11,7 @@ es5id: 15.4.4.4_A1_T3
description: Checking this algorithm with no items
---*/
-var x = [0, 1];
+var x = [0,1];
var arr = x.concat();
//CHECK#0
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js
index 44ca8f91f..028207051 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js
@@ -11,8 +11,8 @@ es5id: 15.4.4.4_A1_T4
description: Checking this algorithm, items are [], [,]
---*/
-var x = [, 1];
-var arr = x.concat([], [, ]);
+var x = [,1];
+var arr = x.concat([], [,]);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js
index a77b0e07c..ce825917a 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js
@@ -13,8 +13,8 @@ description: Checking this for Object object, items are objects and primitives
var x = {};
x.concat = Array.prototype.concat;
var y = new Object();
-var z = new Array(1, 2);
-var arr = x.concat(y, z, -1, true, "NaN");
+var z = new Array(1,2);
+var arr = x.concat(y,z, -1, true, "NaN");
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js
index ed7c03c9f..e98d9e41d 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js
@@ -33,9 +33,7 @@ if (arr.hasOwnProperty('1') !== true) {
Object.prototype[1] = 1;
Object.prototype.length = 2;
Object.prototype.concat = Array.prototype.concat;
-x = {
- 0: 0
-};
+x = {0:0};
var arr = x.concat();
//CHECK#4
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js
index 843410296..b58435329 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js
@@ -62,3 +62,4 @@ if (b.hasOwnProperty('1') !== false) {
if (b.hasOwnProperty('2') !== true) {
$ERROR("expected b.hasOwnProperty('2') === true, actually " + b.hasOwnProperty('2'));
}
+
diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js
index e1eacc545..c86f736cb 100644
--- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js
+++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js
@@ -62,3 +62,4 @@ if (b.hasOwnProperty('1') !== false) {
if (b.hasOwnProperty('2') !== true) {
$ERROR("expected b.hasOwnProperty('2') === true, actually " + b.hasOwnProperty('2'));
}
+
diff --git a/test/built-ins/Array/prototype/concat/create-non-array.js b/test/built-ins/Array/prototype/concat/create-non-array.js
index b33667a9a..171e2baab 100644
--- a/test/built-ins/Array/prototype/concat/create-non-array.js
+++ b/test/built-ins/Array/prototype/concat/create-non-array.js
@@ -15,9 +15,7 @@ info: |
4. If isArray is false, return ? ArrayCreate(length).
---*/
-var obj = {
- length: 0
-};
+var obj = { length: 0 };
var callCount = 0;
var result;
Object.defineProperty(obj, 'constructor', {
diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js
index a1d4e04a4..9cb416ae1 100644
--- a/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-end.js
@@ -17,42 +17,48 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, null), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, null),
+ [0, 1, 2, 3]
),
'null value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, NaN), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, NaN),
+ [0, 1, 2, 3]
),
'NaN value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, false), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, false),
+ [0, 1, 2, 3]
),
'false value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, true), [0, 0, 2, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, true),
+ [0, 0, 2, 3]
),
'true value coerced to 1'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, '-2'), [0, 0, 1, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, '-2'),
+ [0, 0, 1, 3]
),
'string "-2" value coerced to integer -2'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, -2.5), [0, 0, 1, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, -2.5),
+ [0, 0, 1, 3]
),
'float -2.5 value coerced to integer -2'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js
index 5789f7ede..182655bf5 100644
--- a/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-start.js
@@ -16,28 +16,32 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, undefined), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1, undefined),
+ [0, 0, 1, 2]
),
'undefined value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, false), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1, false),
+ [0, 0, 1, 2]
),
'false value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, NaN), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1, NaN),
+ [0, 0, 1, 2]
),
'NaN value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, null), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1, null),
+ [0, 0, 1, 2]
),
'null value coerced to 0'
);
@@ -45,7 +49,8 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, true), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, true),
+ [1, 2, 3, 3]
),
'true value coerced to 1'
);
@@ -53,21 +58,24 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, '1'), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, '1'),
+ [1, 2, 3, 3]
),
'string "1" value coerced to 1'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0.5), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1, 0.5),
+ [0, 0, 1, 2]
),
'0.5 float value coerced to integer 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1.5), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, 1.5),
+ [1, 2, 3, 3]
),
'1.5 float value coerced to integer 1'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js b/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js
index 54465b97a..2646b19f2 100644
--- a/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js
+++ b/test/built-ins/Array/prototype/copyWithin/coerced-values-target.js
@@ -16,28 +16,32 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(undefined, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(undefined, 1),
+ [1, 2, 3, 3]
),
'undefined value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(false, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(false, 1),
+ [1, 2, 3, 3]
),
'false value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(NaN, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(NaN, 1),
+ [1, 2, 3, 3]
),
'NaN value coerced to 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(null, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(null, 1),
+ [1, 2, 3, 3]
),
'null value coerced to 0'
);
@@ -45,7 +49,8 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(true, 0), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(true, 0),
+ [0, 0, 1, 2]
),
'true value coerced to 1'
);
@@ -53,21 +58,24 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3].copyWithin('1', 0), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin('1', 0),
+ [0, 0, 1, 2]
),
'string "1" value coerced to 1'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0.5, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0.5, 1),
+ [1, 2, 3, 3]
),
'0.5 float value coerced to integer 0'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1.5, 0), [0, 0, 1, 2]
+ [0, 1, 2, 3].copyWithin(1.5, 0),
+ [0, 0, 1, 2]
),
'1.5 float value coerced to integer 1'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-end.js b/test/built-ins/Array/prototype/copyWithin/negative-end.js
index 81e97abfd..70aa0e0e2 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-end.js
@@ -20,56 +20,64 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, -1), [1, 2, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, -1),
+ [1, 2, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, -1) -> [1, 2, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(2, 0, -1), [0, 1, 0, 1, 2]
+ [0, 1, 2, 3, 4].copyWithin(2, 0, -1),
+ [0, 1, 0, 1, 2]
),
'[0, 1, 2, 3, 4].copyWithin(2, 0, -1) -> [0, 1, 0, 1, 2]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(1, 2, -2), [0, 2, 2, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(1, 2, -2),
+ [0, 2, 2, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(1, 2, -2) -> [0, 2, 2, 3, 4]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, -2, -1), [2, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, -2, -1),
+ [2, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, -2, -1) -> [2, 1, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(2, -2, -1), [0, 1, 3, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(2, -2, -1),
+ [0, 1, 3, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(2, -2, 1) -> [0, 1, 3, 3, 4]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-3, -2, -1), [0, 2, 2, 3]
+ [0, 1, 2, 3].copyWithin(-3, -2, -1),
+ [0, 2, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-3, -2, -1) -> [0, 2, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-2, -3, -1), [0, 1, 2, 2, 3]
+ [0, 1, 2, 3, 4].copyWithin(-2, -3, -1),
+ [0, 1, 2, 2, 3]
),
'[0, 1, 2, 3, 4].copyWithin(-2, -3, -1) -> [0, 1, 2, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-5, -2, -1), [3, 1, 2, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(-5, -2, -1),
+ [3, 1, 2, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(-5, -2, -1) -> [3, 1, 2, 3, 4]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js
index 34b837461..072d03e70 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-end.js
@@ -20,70 +20,80 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(0, 1, -Infinity) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, -2, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, -2, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, -2, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(0, -2, -Infinity) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, -9, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, -9, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, -9, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(0, -9, -Infinity) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-3, -2, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(-3, -2, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-3, -2, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-3, -2, -Infinity) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-7, -8, -9), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(-7, -8, -9),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-7, -8, -9) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-7, -8, -Infinity) -> [1, 2, 3, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js
index e3002b70f..1f31fc9eb 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-start.js
@@ -17,28 +17,32 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(0, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(0, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(0, -Infinity) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(2, -10), [0, 1, 0, 1, 2]
+ [0, 1, 2, 3, 4].copyWithin(2, -10),
+ [0, 1, 0, 1, 2]
),
'[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 0, 1, 2]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(2, -Infinity), [1, 2, 1, 2, 3]
+ [1, 2, 3, 4, 5].copyWithin(2, -Infinity),
+ [1, 2, 1, 2, 3]
),
'[1, 2, 3, 4, 5].copyWithin(2, -Infinity) -> [1, 2, 1, 2, 3]'
);
@@ -46,14 +50,16 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(10, -10), [0, 1, 2, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(10, -10),
+ [0, 1, 2, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(10, -10) -> [0, 1, 2, 3, 4]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(10, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(10, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(10, -Infinity) -> [1, 2, 3, 4, 5]'
);
@@ -61,14 +67,16 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-9, -10), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(-9, -10),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-9, -10) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-9, -Infinity), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-9, -Infinity),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-9, -Infinity) -> [1, 2, 3, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js
index f17ab8a8a..72b95dcac 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-out-of-bounds-target.js
@@ -17,28 +17,32 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-10, 0), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(-10, 0),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(-10, 0) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-Infinity, 0), [1, 2, 3, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-Infinity, 0),
+ [1, 2, 3, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-Infinity, 0) -> [1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-10, 2), [2, 3, 4, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(-10, 2),
+ [2, 3, 4, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(-10, 2) -> [2, 3, 4, 3, 4]'
);
assert(
compareArray(
- [1, 2, 3, 4, 5].copyWithin(-Infinity, 2), [3, 4, 5, 4, 5]
+ [1, 2, 3, 4, 5].copyWithin(-Infinity, 2),
+ [3, 4, 5, 4, 5]
),
'[1, 2, 3, 4, 5].copyWithin(-Infinity, 2) -> [3, 4, 5, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-start.js b/test/built-ins/Array/prototype/copyWithin/negative-start.js
index 3989b288d..4cec365ad 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-start.js
@@ -17,42 +17,48 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, -1), [3, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, -1),
+ [3, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, -1) -> [3, 1, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(2, -2), [0, 1, 3, 4, 4]
+ [0, 1, 2, 3, 4].copyWithin(2, -2),
+ [0, 1, 3, 4, 4]
),
'[0, 1, 2, 3, 4].copyWithin(2, -2) -> [0, 1, 3, 4, 4]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(1, -2), [0, 3, 4, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(1, -2),
+ [0, 3, 4, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(1, -2) -> [0, 3, 4, 3, 4]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-1, -2), [0, 1, 2, 2]
+ [0, 1, 2, 3].copyWithin(-1, -2),
+ [0, 1, 2, 2]
),
'[0, 1, 2, 3].copyWithin(-1, -2) -> [ 0, 1, 2, 2 ]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-2, -3), [0, 1, 2, 2, 3]
+ [0, 1, 2, 3, 4].copyWithin(-2, -3),
+ [0, 1, 2, 2, 3]
),
'[0, 1, 2, 3, 4].copyWithin(-2, -3) -> [0, 1, 2, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-5, -2), [3, 4, 2, 3, 4]
+ [0, 1, 2, 3, 4].copyWithin(-5, -2),
+ [3, 4, 2, 3, 4]
),
'[0, 1, 2, 3, 4].copyWithin(-5, -2) -> [3, 4, 2, 3, 4]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/negative-target.js b/test/built-ins/Array/prototype/copyWithin/negative-target.js
index 99844a4b8..29fd24975 100644
--- a/test/built-ins/Array/prototype/copyWithin/negative-target.js
+++ b/test/built-ins/Array/prototype/copyWithin/negative-target.js
@@ -17,21 +17,24 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-1, 0), [0, 1, 2, 0]
+ [0, 1, 2, 3].copyWithin(-1, 0),
+ [0, 1, 2, 0]
),
'[0, 1, 2, 3].copyWithin(-1, 0) -> [0, 1, 2, 0]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4].copyWithin(-2, 2), [0, 1, 2, 2, 3]
+ [0, 1, 2, 3, 4].copyWithin(-2, 2),
+ [0, 1, 2, 2, 3]
),
'[0, 1, 2, 3, 4].copyWithin(-2, 2) -> [0, 1, 2, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(-1, 2), [0, 1, 2, 2]
+ [0, 1, 2, 3].copyWithin(-1, 2),
+ [0, 1, 2, 2]
),
'[0, 1, 2, 3].copyWithin(-1, 2) -> [0, 1, 2, 2]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js
index d20bc64c2..6af95e724 100644
--- a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-end.js
@@ -36,28 +36,32 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, 6), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, 6),
+ [1, 2, 3, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, 6) -> [1, 2, 3, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, Infinity), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, Infinity),
+ [1, 2, 3, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, Infinity) -> [1, 2, 3, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6), [0, 3, 4, 5, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6),
+ [0, 3, 4, 5, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 6) -> [0, 3, 4, 5, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity), [0, 3, 4, 5, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity),
+ [0, 3, 4, 5, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(1, 3, Infinity) -> [0, 3, 4, 5, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js
index 64f3c5854..e38edecd7 100644
--- a/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/non-negative-out-of-bounds-target-and-start.js
@@ -30,56 +30,64 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(6, 0), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(6, 0),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(6, 0) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(7, 0), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(7, 0),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(6, 0) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(Infinity, 0) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(6, 2), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(6, 2),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(6, 2) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(7, 2), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(7, 2),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(7, 2) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(Infinity, 2) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(0, 6), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(0, 6),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(0, 6) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(0, 7), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(0, 7),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(0, 7) => [0, 1, 2, 3, 4, 5]'
);
@@ -87,21 +95,24 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(0, Infinity), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(0, Infinity),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(0, Infinity) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(2, 6), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(2, 6),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(2, 6) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(1, 7), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(1, 7),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(1, 7) => [0, 1, 2, 3, 4, 5]'
);
@@ -109,28 +120,32 @@ assert(
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(3, Infinity), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(3, Infinity),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(3, Infinity) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(6, 6), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(6, 6),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(6, 6) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(10, 10), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(10, 10),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(10, 10) => [0, 1, 2, 3, 4, 5]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity), [0, 1, 2, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity),
+ [0, 1, 2, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(Infinity, Infinity) => [0, 1, 2, 3, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js b/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js
index 02a6bc4e7..9704fcc62 100644
--- a/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/non-negative-target-and-start.js
@@ -34,24 +34,28 @@ includes: [compareArray.js]
assert(
compareArray(
- ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 0), ['a', 'b', 'c', 'd', 'e', 'f']
+ ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 0),
+ ['a', 'b', 'c', 'd', 'e', 'f']
)
);
assert(
compareArray(
- ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 2), ['c', 'd', 'e', 'f', 'e', 'f']
+ ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(0, 2),
+ ['c', 'd', 'e', 'f', 'e', 'f']
)
);
assert(
compareArray(
- ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(3, 0), ['a', 'b', 'c', 'a', 'b', 'c']
+ ['a', 'b', 'c', 'd', 'e', 'f'].copyWithin(3, 0),
+ ['a', 'b', 'c', 'a', 'b', 'c']
)
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(1, 4), [0, 4, 5, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(1, 4),
+ [0, 4, 5, 3, 4, 5]
)
);
diff --git a/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js b/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js
index 4dbc5479c..89a665ad5 100644
--- a/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/non-negative-target-start-and-end.js
@@ -36,21 +36,24 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 0, 0), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, 0, 0),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, 0, 0) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 0, 2), [0, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, 0, 2),
+ [0, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, 0, 2) -> [0, 1, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, 2), [1, 1, 2, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, 2),
+ [1, 1, 2, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, 2) -> [1, 1, 2, 3]'
);
@@ -68,14 +71,16 @@ assert(
*/
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(1, 0, 2), [0, 0, 1, 3]
+ [0, 1, 2, 3].copyWithin(1, 0, 2),
+ [0, 0, 1, 3]
),
'[0, 1, 2, 3].copyWithin(1, 0, 2) -> [0, 0, 1, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5), [0, 3, 4, 3, 4, 5]
+ [0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5),
+ [0, 3, 4, 3, 4, 5]
),
'[0, 1, 2, 3, 4, 5].copyWithin(1, 3, 5) -> [0, 3, 4, 3, 4, 5]'
);
diff --git a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js
index a81b4ac32..6d69262ff 100644
--- a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-end.js
@@ -23,3 +23,4 @@ var o1 = {
assert.throws(Test262Error, function() {
[].copyWithin(0, 0, o1);
});
+
diff --git a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js
index 669404441..37768729c 100644
--- a/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js
+++ b/test/built-ins/Array/prototype/copyWithin/return-abrupt-from-start.js
@@ -22,3 +22,4 @@ var o1 = {
assert.throws(Test262Error, function() {
[].copyWithin(0, o1);
});
+
diff --git a/test/built-ins/Array/prototype/copyWithin/undefined-end.js b/test/built-ins/Array/prototype/copyWithin/undefined-end.js
index 6ef024c75..93c75620e 100644
--- a/test/built-ins/Array/prototype/copyWithin/undefined-end.js
+++ b/test/built-ins/Array/prototype/copyWithin/undefined-end.js
@@ -17,14 +17,16 @@ includes: [compareArray.js]
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1, undefined), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, 1, undefined),
+ [1, 2, 3, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1, undefined) -> [1, 2, 3]'
);
assert(
compareArray(
- [0, 1, 2, 3].copyWithin(0, 1), [1, 2, 3, 3]
+ [0, 1, 2, 3].copyWithin(0, 1),
+ [1, 2, 3, 3]
),
'[0, 1, 2, 3].copyWithin(0, 1) -> [1, 2, 3, 3]'
);
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js
index 0d88f961e..32c5b4f6a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-4.js
@@ -8,7 +8,6 @@ description: Array.prototype.every applied to Boolean object
---*/
var accessed = false;
-
function callbackfn(val, idx, obj) {
accessed = true;
return obj instanceof Boolean;
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js
index 7bd133c74..91827adfc 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-5.js
@@ -8,7 +8,6 @@ description: Array.prototype.every applied to number primitive
---*/
var accessed = false;
-
function callbackfn(val, idx, obj) {
accessed = true;
return obj instanceof Number;
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js
index 255a5afc2..09439db09 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-6.js
@@ -8,7 +8,6 @@ description: Array.prototype.every applied to Number object
---*/
var accessed = false;
-
function callbackfn(val, idx, obj) {
accessed = true;
return obj instanceof Number;
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js
index bf6992cf1..f33885b89 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-1-9.js
@@ -11,7 +11,7 @@ function callbackfn(val, idx, obj) {
return !(obj instanceof Function);
}
-var obj = function(a, b) {
+var obj = function (a, b) {
return a + b;
};
obj[0] = 11;
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js
index c895c286c..88dc9700a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-10.js
@@ -17,16 +17,16 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var proto = {};
+var proto = { };
Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
+ get: function () {
+ return 2;
},
configurable: true
});
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js
index 9f2497b6a..135cc936d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-11.js
@@ -21,7 +21,7 @@ var obj = {
1: 8
};
Object.defineProperty(obj, "length", {
- set: function() {},
+ set: function () { },
configurable: true
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js
index 4cc13deab..2f71539f4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-12.js
@@ -17,19 +17,16 @@ function callbackfn(val, idx, obj) {
}
Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
+ get: function () {
+ return 2;
+ },
+ configurable: true
});
-var obj = {
- 0: 9,
- 1: 8
-};
+var obj = { 0: 9, 1: 8 };
Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
+ set: function () { },
+ configurable: true
});
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js
index 0c03deb22..07dc5015e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-13.js
@@ -12,17 +12,17 @@ description: >
var accessed = false;
function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
+ accessed = true;
+ return val > 10;
}
var proto = {};
Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
+ set: function () { },
+ configurable: true
});
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js
index eb91b3e56..f88589524 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-14.js
@@ -16,10 +16,7 @@ function callbackfn(val, idx, obj) {
return val > 10;
}
-var obj = {
- 0: 11,
- 1: 12
-};
+var obj = { 0: 11, 1: 12 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js
index 7d4e3200c..bf6fcd0c8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-17.js
@@ -17,10 +17,10 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var func = function(a, b) {
+var func = function (a, b) {
arguments[2] = 9;
return Array.prototype.every.call(arguments, callbackfn1) &&
- !Array.prototype.every.call(arguments, callbackfn2);
+ !Array.prototype.every.call(arguments, callbackfn2);
};
assert(func(12, 11), 'func(12, 11) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js
index c7c951235..89977f222 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-19.js
@@ -17,7 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var fun = function(a, b) {
+var fun = function (a, b) {
return a + b;
};
fun[0] = 12;
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js
index 203eaee8a..57c559260 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-3.js
@@ -17,11 +17,9 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var proto = {
- length: 3
-};
+var proto = { length: 3 };
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js
index cebdab087..c071a8875 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-4.js
@@ -10,7 +10,6 @@ description: >
---*/
var arrProtoLen = 0;
-
function callbackfn1(val, idx, obj) {
return val > 10;
}
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js
index 1f4ffc7a8..6cd638bdb 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-5.js
@@ -17,16 +17,16 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var proto = {};
+var proto = { };
Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
+ get: function () {
+ return 3;
},
configurable: true
});
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js
index 264d43dd2..b464e4151 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-6.js
@@ -17,11 +17,9 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var proto = {
- length: 2
-};
+var proto = { length: 2 };
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js
index 9e29cd715..bcc252a2b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-7.js
@@ -17,11 +17,11 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {};
+var obj = { };
Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
+ get: function () {
+ return 2;
},
configurable: true
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js
index d3a3e96ab..298e148b0 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-8.js
@@ -17,18 +17,16 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var proto = {
- length: 3
-};
+var proto = { length: 3 };
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
Object.defineProperty(child, "length", {
- get: function() {
- return 2;
+ get: function () {
+ return 2;
},
configurable: true
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js
index 4dd430d1b..48387126b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-2-9.js
@@ -20,20 +20,20 @@ function callbackfn2(val, idx, obj) {
var proto = {};
Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
+ get: function () {
+ return 3;
},
configurable: true
});
-var Con = function() {};
+var Con = function () { };
Con.prototype = proto;
var child = new Con();
Object.defineProperty(child, "length", {
- get: function() {
- return 2;
+ get: function () {
+ return 2;
},
configurable: true
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js
index a72ca6863..b745f20c1 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-1.js
@@ -14,10 +14,7 @@ function callbackfn(val, idx, obj) {
return val > 10;
}
-var obj = {
- 0: 9,
- length: undefined
-};
+var obj = { 0: 9, length: undefined };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js
index b381ef7d2..c8029d4a0 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-10.js
@@ -16,10 +16,7 @@ function callbackfn(val, idx, obj) {
return val > 10;
}
-var obj = {
- 0: 9,
- length: NaN
-};
+var obj = { 0: 9, length: NaN };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js
index ab5fa5744..9b27d025a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-11.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2"
-};
+var obj = { 0: 12, 1: 11, 2: 9, length: "2" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js
index bdf1ee93e..0c2a3f97e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-12.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 11,
- 1: 12,
- 2: 9,
- length: "-4294967294"
-};
+var obj = { 0: 11, 1: 12, 2: 9, length: "-4294967294" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert(Array.prototype.every.call(obj, callbackfn2), 'Array.prototype.every.call(obj, callbackfn2) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js
index 23c734251..0043f34ee 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-13.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2.5"
-};
+var obj = { 0: 12, 1: 11, 2: 9, length: "2.5" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js
index c20b8194a..1d99f1e2e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-14.js
@@ -10,22 +10,13 @@ description: Array.prototype.every - 'length' is a string containing +/-Infinity
var accessed = false;
function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
+ accessed = true;
+ return val > 10;
}
-var objOne = {
- 0: 9,
- length: "Infinity"
-};
-var objTwo = {
- 0: 9,
- length: "+Infinity"
-};
-var objThree = {
- 0: 9,
- length: "-Infinity"
-};
+var objOne = { 0: 9, length: "Infinity" };
+var objTwo = { 0: 9, length: "+Infinity" };
+var objThree = { 0: 9, length: "-Infinity" };
assert.sameValue(Array.prototype.every.call(objOne, callbackfn), false, 'Array.prototype.every.call(objOne, callbackfn)');
assert.sameValue(Array.prototype.every.call(objTwo, callbackfn), false, 'Array.prototype.every.call(objTwo, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js
index 63ceb586e..dcdda5fae 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-15.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2E0"
-};
+var obj = { 0: 12, 1: 11, 2: 9, length: "2E0" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js
index ea0e8386c..4e7f6f97c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-16.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "0x0002"
-};
+var obj = { 0: 12, 1: 11, 2: 9, length: "0x0002" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js
index 0125b2b77..eb35d70b1 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-17.js
@@ -17,12 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "0002.00"
-};
+var obj = { 0: 12, 1: 11, 2: 9, length: "0002.00" };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js
index c06bc6c27..96846f106 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-18.js
@@ -16,11 +16,7 @@ function callbackfn(val, idx, obj) {
return val > 10;
}
-var obj = {
- 0: 9,
- 1: 8,
- length: "two"
-};
+var obj = { 0: 9, 1: 8, length: "two" };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js
index a2bc1211f..15d3f5af9 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-19.js
@@ -10,25 +10,25 @@ description: >
---*/
function callbackfn1(val, idx, obj) {
- return val > 10;
+ return val > 10;
}
function callbackfn2(val, idx, obj) {
- return val > 11;
+ return val > 11;
}
var toStringAccessed = false;
var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
+ 0: 12,
+ 1: 11,
+ 2: 9,
- length: {
- toString: function() {
- toStringAccessed = true;
- return '2';
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
}
- }
};
// objects inherit the default valueOf() method from Object
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js
index fb8444d54..bb2431acb 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-2.js
@@ -17,11 +17,7 @@ function callbackfn2(val, idx, obj) {
return val > 11;
}
-var obj = {
- 0: 11,
- 1: 9,
- length: true
-};
+var obj = { 0: 11, 1: 9, length: true };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js
index a642c0ad1..4f12b7bd7 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-20.js
@@ -24,10 +24,10 @@ var obj = {
1: 11,
2: 9,
length: {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
}
};
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js
index 7f57fb9f2..cc8359790 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-21.js
@@ -11,30 +11,30 @@ description: >
---*/
function callbackfn1(val, idx, obj) {
- return val > 10;
+ return val > 10;
}
function callbackfn2(val, idx, obj) {
- return val > 11;
+ return val > 11;
}
var toStringAccessed = false;
var valueOfAccessed = false;
var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return '2';
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
}
- }
};
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js
index a0f549b95..44c8deb75 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-22.js
@@ -10,32 +10,32 @@ description: >
primitive values
---*/
-var callbackfnAccessed = false;
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var callbackfnAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-function callbackfn(val, idx, obj) {
- callbackfnAccessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ callbackfnAccessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12,
+ var obj = {
+ 0: 11,
+ 1: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.every.call(obj, callbackfn);
+ Array.prototype.every.call(obj, callbackfn);
});
assert(toStringAccessed, 'toStringAccessed !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js
index 19f4be0b2..e282dd269 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-23.js
@@ -9,40 +9,40 @@ description: >
is an object with an own toString and inherited valueOf methods
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
-
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-var valueOfAccessed = false;
-var toStringAccessed = false;
-
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
-
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: child
-};
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
+
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
+
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: child
+ };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js
index 88db17559..61c2e627b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-24.js
@@ -9,20 +9,15 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2.685
-};
+ var obj = { 0: 12, 1: 11, 2: 9, length: 2.685 };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js
index d6a174f87..3d052320a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-25.js
@@ -7,20 +7,20 @@ es5id: 15.4.4.16-3-25
description: Array.prototype.every - value of 'length' is a negative non-integer
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: -4294967294.5
-};
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+ };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert(Array.prototype.every.call(obj, callbackfn2), 'Array.prototype.every.call(obj, callbackfn2) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js
index eaf990b5b..9abe0e936 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-29.js
@@ -9,19 +9,19 @@ description: >
+ 1)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 4294967297
-};
+ var obj = {
+ 0: 11,
+ 1: 9,
+ length: 4294967297
+ };
assert.sameValue(Array.prototype.every.call(obj, callbackfn1), false, 'Array.prototype.every.call(obj, callbackfn1)');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js
index 4636ccf3e..c792c27c6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-3.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.16-3-3
description: Array.prototype.every - value of 'length' is a number (value is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- length: 0
-};
+ var obj = { 0: 9, length: 0 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js
index 68a0bf50a..c17e335a4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-4.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.16-3-4
description: Array.prototype.every - value of 'length' is a number (value is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- length: +0
-};
+ var obj = { 0: 9, length: +0 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js
index d041e7add..eb9f48ba3 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-5.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.16-3-5
description: Array.prototype.every - value of 'length' is a number (value is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- length: -0
-};
+ var obj = { 0: 9, length: -0 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js
index 0ea6839cb..1d1b15ef1 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-6.js
@@ -9,20 +9,15 @@ description: >
positive)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = { 0: 12, 1: 11, 2: 9, length: 2 };
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.every.call(obj, callbackfn2), false, 'Array.prototype.every.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js
index 880c26aab..977bb65f9 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-7.js
@@ -9,20 +9,15 @@ description: >
negative)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: -4294967294
-}; //length used to exec while loop is 0
+ var obj = { 0: 12, 1: 11, 2: 9, length: -4294967294 }; //length used to exec while loop is 0
assert(Array.prototype.every.call(obj, callbackfn1), 'Array.prototype.every.call(obj, callbackfn1) !== true');
assert(Array.prototype.every.call(obj, callbackfn2), 'Array.prototype.every.call(obj, callbackfn2) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js
index 47a09300d..6496da4f0 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-8.js
@@ -9,17 +9,14 @@ description: >
Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- length: Infinity
-};
+ var obj = { 0: 9, length: Infinity };
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js
index 7166e98b8..9499801b8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-3-9.js
@@ -9,17 +9,14 @@ description: >
-Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- length: -Infinity
-};
+ var obj = { 0: 9, length: -Infinity };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js
index c0d6ba0cb..8cefedbe0 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-1
description: Array.prototype.every throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every();
+ arr.every();
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js
index 2f458442b..abbff39d2 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-10.js
@@ -9,18 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.every.call(obj, undefined);
+ Array.prototype.every.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js
index 2cd9bba54..4e4b09b69 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-11.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.every.call(obj, undefined);
+ Array.prototype.every.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js
index a137acbc3..ded81c8a4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-12.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.16-4-12
description: Array.prototype.every - 'callbackfn' is a function
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
assert.sameValue([11, 9].every(callbackfn), false, '[11, 9].every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js
index 207a615ff..2f4fa8f8c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-15.js
@@ -9,29 +9,27 @@ description: >
passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.every.call(obj);
+ Array.prototype.every.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js
index 2613f1cf3..103f22d6a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-3
description: Array.prototype.every throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every(null);
+ arr.every(null);
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js
index 6a1c03772..1b7631332 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-4
description: Array.prototype.every throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every(true);
+ arr.every(true);
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js
index a2d5c7aef..deb04c6f2 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-5
description: Array.prototype.every throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every(5);
+ arr.every(5);
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js
index eb07314b1..6597e4599 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-4-6
description: Array.prototype.every throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every("abc");
+ arr.every("abc");
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js
index 51e13d6d1..f512f2151 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-7.js
@@ -9,7 +9,7 @@ description: >
without a Call internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.every({});
+ arr.every( {} );
});
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js
index cb6ef73b1..a3e75ff59 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-8.js
@@ -9,21 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.every.call(obj, null);
+ Array.prototype.every.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js
index efe205eb4..fc1acaa02 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-4-9.js
@@ -9,25 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.every.call(obj, null);
+ Array.prototype.every.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js
index 2d906315f..989a6ee20 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-1-s.js
@@ -8,14 +8,14 @@ description: Array.prototype.every - thisArg not passed to strict callbackfn
flags: [noStrict]
---*/
-var innerThisCorrect = false;
+ var innerThisCorrect = false;
-function callbackfn(val, idx, obj) {
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
-[1].every(callbackfn);
+ [1].every(callbackfn);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js
index a3bdbc170..360f9850f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-1.js
@@ -10,11 +10,11 @@ flags: [noStrict]
var global = this;
-function callbackfn(val, idx, obj)
-{
- return this === global;
-}
+ function callbackfn(val, idx, obj)
+ {
+ return this === global;
+ }
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js
index 087f9c2a3..5d7c8a6e9 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-10.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-10
description: Array.prototype.every - Array Object can be used as thisArg
---*/
-var accessed = false;
-var objArray = [];
+ var accessed = false;
+ var objArray = [];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objArray;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objArray;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js
index dce15d0f4..41792ec1d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-11.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-11
description: Array.prototype.every - String Object can be used as thisArg
---*/
-var accessed = false;
-var objString = new String();
+ var accessed = false;
+ var objString = new String();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objString;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objString;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js
index 97b5771b3..cbb7ddf8b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-12.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-12
description: Array.prototype.every - Boolean Object can be used as thisArg
---*/
-var accessed = false;
-var objBoolean = new Boolean();
+ var accessed = false;
+ var objBoolean = new Boolean();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objBoolean;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objBoolean;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js
index da8f79938..34e73df32 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-13.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-13
description: Array.prototype.every - Number Object can be used as thisArg
---*/
-var accessed = false;
-var objNumber = new Number();
+ var accessed = false;
+ var objNumber = new Number();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objNumber;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objNumber;
+ }
assert([11].every(callbackfn, objNumber), '[11].every(callbackfn, objNumber) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js
index a5cc48fbf..697ef848e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-14.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-14
description: Array.prototype.every - the Math object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === Math;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === Math;
+ }
assert([11].every(callbackfn, Math), '[11].every(callbackfn, Math) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js
index 7133cd487..66a64d987 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-15.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-15
description: Array.prototype.every - Date Object can be used as thisArg
---*/
-var accessed = false;
-var objDate = new Date();
+ var accessed = false;
+ var objDate = new Date();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objDate;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objDate;
+ }
assert([11].every(callbackfn, objDate), '[11].every(callbackfn, objDate) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js
index 1edd76714..091caa14c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-16.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-16
description: Array.prototype.every - RegExp Object can be used as thisArg
---*/
-var accessed = false;
-var objRegExp = new RegExp();
+ var accessed = false;
+ var objRegExp = new RegExp();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objRegExp;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objRegExp;
+ }
assert([11].every(callbackfn, objRegExp), '[11].every(callbackfn, objRegExp) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js
index 2a5162a9c..9e9bd18e8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-17.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-17
description: Array.prototype.every - the JSON object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === JSON;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === JSON;
+ }
assert([11].every(callbackfn, JSON), '[11].every(callbackfn, JSON) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js
index bae882c7c..a944bff81 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-18.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-18
description: Array.prototype.every - Error Object can be used as thisArg
---*/
-var accessed = false;
-var objError = new RangeError();
+ var accessed = false;
+ var objError = new RangeError();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objError;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objError;
+ }
assert([11].every(callbackfn, objError), '[11].every(callbackfn, objError) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js
index 3b39e1826..7a3e06e09 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-19.js
@@ -7,17 +7,17 @@ es5id: 15.4.4.16-5-19
description: Array.prototype.every - the Arguments object can be used as thisArg
---*/
-var accessed = false;
-var arg;
+ var accessed = false;
+ var arg;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === arg;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === arg;
+ }
-(function fun() {
- arg = arguments;
-}(1, 2, 3));
+ (function fun() {
+ arg = arguments;
+ }(1, 2, 3));
assert([11].every(callbackfn, arg), '[11].every(callbackfn, arg) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js
index 96c0d39a4..f15102c64 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-2.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.16-5-2
description: Array.prototype.every - thisArg is Object
---*/
-var res = false;
-var o = new Object();
-o.res = true;
+ var res = false;
+ var o = new Object();
+ o.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.every(callbackfn, o), true, 'arr.every(callbackfn, o)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js
index 50d36ddce..7da5e8193 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-21.js
@@ -8,12 +8,12 @@ description: Array.prototype.every - the global object can be used as thisArg
---*/
var global = this;
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === global;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === global;
+ }
assert([11].every(callbackfn, global), '[11].every(callbackfn, global) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js
index 90dcfb2df..d580818a6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-22.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-22
description: Array.prototype.every - boolean primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === false;
+ }
assert([11].every(callbackfn, false), '[11].every(callbackfn, false) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js
index ba19fd209..7953a7006 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-23.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-23
description: Array.prototype.every - number primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === 101;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === 101;
+ }
assert([11].every(callbackfn, 101), '[11].every(callbackfn, 101) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js
index 4439dca25..c9da3d991 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-24.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-24
description: Array.prototype.every - string primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === "abc";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === "abc";
+ }
assert([11].every(callbackfn, "abc"), '[11].every(callbackfn, "abc") !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js
index 1a1bb9b7d..69f614ff8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-3.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.16-5-3
description: Array.prototype.every - thisArg is Array
---*/
-var res = false;
-var a = new Array();
-a.res = true;
+ var res = false;
+ var a = new Array();
+ a.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.every(callbackfn, a), true, 'arr.every(callbackfn, a)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js
index b3e03058a..45ee186d1 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-4.js
@@ -9,16 +9,15 @@ description: >
template(prototype)
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.prototype.res = true;
+ var f = new foo();
+ var arr = [1];
-function foo() {}
-foo.prototype.res = true;
-var f = new foo();
-var arr = [1];
-
-assert.sameValue(arr.every(callbackfn, f), true, 'arr.every(callbackfn,f)');
+assert.sameValue(arr.every(callbackfn,f), true, 'arr.every(callbackfn,f)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js
index 47ce23ac6..c0447933f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-5.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.16-5-5
description: Array.prototype.every - thisArg is object from object template
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ var f = new foo();
+ f.res = true;
+ var arr = [1];
-function foo() {}
-var f = new foo();
-f.res = true;
-var arr = [1];
-
-assert.sameValue(arr.every(callbackfn, f), true, 'arr.every(callbackfn,f)');
+assert.sameValue(arr.every(callbackfn,f), true, 'arr.every(callbackfn,f)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js
index a71c98ee2..f871e3a43 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-6.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.16-5-6
description: Array.prototype.every - thisArg is function
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.res = true;
+ var arr = [1];
-function foo() {}
-foo.res = true;
-var arr = [1];
-
-assert.sameValue(arr.every(callbackfn, foo), true, 'arr.every(callbackfn,foo)');
+assert.sameValue(arr.every(callbackfn,foo), true, 'arr.every(callbackfn,foo)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js
index ff38fcdc4..3fa6fc9e7 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-7.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-5-7
description: Array.prototype.every - built-in functions can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === eval;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === eval;
+ }
assert([11].every(callbackfn, eval), '[11].every(callbackfn, eval) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js
index 275789142..400c0ca84 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-5-9.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-5-9
description: Array.prototype.every - Function Object can be used as thisArg
---*/
-var accessed = false;
-var objFunction = function() {};
+ var accessed = false;
+ var objFunction = function () { };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objFunction;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objFunction;
+ }
assert([11].every(callbackfn, objFunction), '[11].every(callbackfn, objFunction) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js
index 22bcfaff6..e8d6745dd 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-1.js
@@ -9,18 +9,18 @@ description: >
the call
---*/
-var calledForThree = false;
+ var calledForThree = false;
-function callbackfn(val, Idx, obj)
-{
- arr[2] = 3;
- if (val == 3)
- calledForThree = true;
- return true;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ arr[2] = 3;
+ if(val == 3)
+ calledForThree = true;
+ return true;
+ }
-var arr = [1, 2, , 4, 5];
+ var arr = [1,2,,4,5];
-var res = arr.every(callbackfn);
+ var res = arr.every(callbackfn);
assert(calledForThree, 'calledForThree !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js
index 47d3ed4e5..fcb91af17 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-2.js
@@ -9,16 +9,16 @@ description: >
after the call
---*/
-function callbackfn(val, Idx, obj)
-{
- arr[4] = 6;
- if (val < 6)
- return true;
- else
- return false;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ arr[4] = 6;
+ if(val < 6)
+ return true;
+ else
+ return false;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js
index 08531fe61..214575295 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-3.js
@@ -9,16 +9,16 @@ description: >
after the call
---*/
-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;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js
index 9cbb2eda0..0cfdd4ebc 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-4.js
@@ -9,16 +9,16 @@ description: >
Array.length is decreased
---*/
-function callbackfn(val, Idx, obj)
-{
- arr.length = 3;
- if (val < 4)
- return true;
- else
- return false;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ arr.length = 3;
+ if(val < 4)
+ return true;
+ else
+ return false;
+ }
-var arr = [1, 2, 3, 4, 6];
+ var arr = [1,2,3,4,6];
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js
index c4c062bdf..c7cfcd23e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-5.js
@@ -9,18 +9,18 @@ description: >
sparse array
---*/
-function callbackfn(val, Idx, obj)
-{
- arr[1000] = 3;
- if (val < 3)
- return true;
- else
- return false;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ arr[1000] = 3;
+ if(val < 3)
+ return true;
+ else
+ return false;
+ }
-var arr = new Array(10);
-arr[1] = 1;
-arr[2] = 2;
+ var arr = new Array(10);
+ arr[1] = 1;
+ arr[2] = 2;
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
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 45bcdd29a..1cf937c7c 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');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js
index d25bd744d..7eaab5078 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-7.js
@@ -10,16 +10,16 @@ description: >
Array.prototype.every is called for all elements
---*/
-var o = new Object();
-o.arr = [1, 2, 3, 4, 5];
+ var o = new Object();
+ o.arr = [1, 2, 3, 4, 5];
-function callbackfn(val, Idx, obj) {
- delete o.arr;
- if (val === Idx + 1)
- return true;
- else
- return false;
-}
+ function callbackfn(val, Idx, obj) {
+ delete o.arr;
+ if (val === Idx + 1)
+ return true;
+ else
+ return false;
+ }
assert(o.arr.every(callbackfn), 'o.arr.every(callbackfn) !== true');
assert.sameValue(o.hasOwnProperty("arr"), false, 'o.hasOwnProperty("arr")');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js
index ff2f0f8be..079db7b2d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-8.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.16-7-8
description: Array.prototype.every - no observable effects occur if len is 0
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 0
-};
+ var obj = { 0: 11, 1: 12, length: 0 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js
index c1bbdfc1b..ded5d48e2 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-9.js
@@ -9,26 +9,22 @@ description: >
number of iterations
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val > 10;
+ }
-var obj = {
- 1: 12,
- 2: 9,
- length: 2
-};
+ var obj = { 1: 12, 2: 9, length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- obj.length = 3;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ obj.length = 3;
+ return 11;
+ },
+ configurable: true
+ });
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js
index abcf91365..e0f07ee54 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-1.js
@@ -9,16 +9,15 @@ description: >
been assigned values
---*/
-var callCnt = 0.;
+ var callCnt = 0.;
+ function callbackfn(val, Idx, obj)
+ {
+ callCnt++;
+ return true;
+ }
-function callbackfn(val, Idx, obj)
-{
- callCnt++;
- return true;
-}
-
-var arr = new Array(10);
-arr[1] = undefined;
-arr.every(callbackfn);
+ var arr = new Array(10);
+ arr[1] = undefined;
+ arr.every(callbackfn);
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js
index 913796b1f..e27ff642f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-10.js
@@ -9,26 +9,22 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+ }
+ var arr = { 2: 2, length: 20 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
-}
-var arr = {
- 2: 2,
- length: 20
-};
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
-
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert(Array.prototype.every.call(arr, callbackfn), 'Array.prototype.every.call(arr, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js
index c9ff957cb..54c86d50e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-11.js
@@ -9,23 +9,22 @@ description: >
prototype index property not to be visited on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+ }
+ var arr = [0, , 2];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
-}
-var arr = [0, , 2];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js
index 63282ca55..fda1fe2a7 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-12.js
@@ -10,28 +10,23 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
-var arr = {
- 0: 0,
- 1: 111,
- 2: 2,
- length: 10
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = { 0: 0, 1: 111, 2: 2, length: 10 };
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js
index 26f3f17d1..4032502e5 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-13.js
@@ -9,23 +9,23 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, 111, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, 111, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js
index a017ff964..5115a27a3 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-14.js
@@ -9,21 +9,20 @@ description: >
property not to be visited
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 3;
+ }
+ var arr = [0, 1, 2, "last"];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 3;
-}
-var arr = [0, 1, 2, "last"];
-
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js
index eeb2786e3..03fa5344f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-15.js
@@ -9,28 +9,28 @@ description: >
property causes prototype index property to be visited
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js
index 2bd39ef0a..602b4b80c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-16.js
@@ -10,29 +10,29 @@ description: >
flags: [noStrict]
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js
index 56c5b404f..fca306466 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-2.js
@@ -7,22 +7,22 @@ es5id: 15.4.4.16-7-b-2
description: Array.prototype.every - added properties in step 2 are visible here
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "length") {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "length") {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = {};
+ var arr = { };
-Object.defineProperty(arr, "length", {
- get: function() {
- arr[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ arr[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js
index ca526b8ca..9c7afe89a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-3.js
@@ -9,24 +9,20 @@ description: >
here
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 2;
+ }
+ var arr = { 2: 6.99, 8: 19};
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 2;
-}
-var arr = {
- 2: 6.99,
- 8: 19
-};
-
-Object.defineProperty(arr, "length", {
- get: function() {
- delete arr[2];
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ delete arr[2];
+ return 10;
+ },
+ configurable: true
+ });
assert(Array.prototype.every.call(arr, callbackfn), 'Array.prototype.every.call(arr, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js
index 691affd2c..dbcbe21dd 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-4.js
@@ -9,29 +9,27 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js
index 75cff0bfe..5fd08b67e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-5.js
@@ -9,27 +9,27 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js
index 27663980c..4a71a8389 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-6.js
@@ -9,28 +9,26 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return false;
- } else {
- return true;
- }
-}
-var arr = {
- length: 2
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(arr, callbackfn), false, 'Array.prototype.every.call(arr, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js
index 92daa04a1..692c399de 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-7.js
@@ -9,26 +9,26 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js
index 76f5f1cc0..4bb911375 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-8.js
@@ -9,30 +9,27 @@ description: >
property not to be visited on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+ }
+ var obj = { length: 2 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
-}
-var obj = {
- length: 2
-};
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js
index 9159db986..2c340f8d6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-b-9.js
@@ -9,28 +9,27 @@ description: >
property not to be visited on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx !== 1;
+ }
+ var arr = [1, 2];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx !== 1;
-}
-var arr = [1, 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js
index fd1e28b5f..579deb13d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-1.js
@@ -9,19 +9,15 @@ description: >
property on an Array-like object
---*/
-var kValue = {};
+ var kValue = { };
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val !== kValue;
+ } else {
+ return true;
+ }
+ }
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val !== kValue;
- } else {
- return true;
- }
-}
-
-var obj = {
- 5: kValue,
- length: 100
-};
+ var obj = { 5: kValue, length: 100 };
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js
index 653e5e244..1357bbb23 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-10.js
@@ -9,21 +9,21 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2) {
- return val !== 12;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2) {
+ return val !== 12;
+ } else {
+ return true;
+ }
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "2", {
- get: function() {
- return 12;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js
index 4168c98f9..9527daf83 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-11.js
@@ -10,30 +10,27 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 5;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 5;
+ } else {
+ return true;
+ }
+ }
-var proto = {
- 0: 5,
- 1: 6
-};
+ var proto = { 0: 5, 1: 6 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-Object.defineProperty(child, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js
index c1f29b18b..54751e566 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-12.js
@@ -9,23 +9,23 @@ description: >
property that overrides an inherited data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 10;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 10;
+ } else {
+ return true;
+ }
+ }
-var arr = [];
+ var arr = [];
-Array.prototype[0] = 10;
+ Array.prototype[0] = 10;
-Object.defineProperty(arr, "0", {
- get: function() {
- return 111;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 111;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js
index 5ffb1d544..aff2f0b0e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-13.js
@@ -10,35 +10,35 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === 6;
- } else {
- return true;
- }
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 6;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 10;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return 12;
- },
- configurable: true
-});
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === 6;
+ } else {
+ return true;
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 6;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 10;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js
index 1cf1f75a2..544ef938b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-14.js
@@ -9,28 +9,28 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 5;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 5;
+ } else {
+ return true;
+ }
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js
index aab698397..bc8906dfc 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-15.js
@@ -9,27 +9,27 @@ description: >
accessor property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val !== 11;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val !== 11;
+ } else {
+ return true;
+ }
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 20;
+ var child = new Con();
+ child.length = 20;
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js
index c249d76b1..20a274180 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-16.js
@@ -9,19 +9,19 @@ description: >
accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val !== 11;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val !== 11;
+ } else {
+ return true;
+ }
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
assert.sameValue([, , , ].every(callbackfn), false, '[, , , ].every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js
index 9b52fef8f..948c741bd 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-17.js
@@ -9,20 +9,18 @@ description: >
property without a get function on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js
index 300d32b82..7911ea384 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-18.js
@@ -9,19 +9,19 @@ description: >
property without a get function on an Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js
index cc150375a..26ae16c5a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-19.js
@@ -10,22 +10,20 @@ description: >
accessor property on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.prototype[1] = 10;
+ Object.prototype[1] = 10;
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js
index 5afcd1e0b..5a201fde8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-2.js
@@ -9,12 +9,12 @@ description: >
property on an Array
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val === 11;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert.sameValue(called, 1, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js
index 8a5fa3139..38e384bb2 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-20.js
@@ -10,21 +10,21 @@ description: >
accessor property on an Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[0] = 100;
+ Array.prototype[0] = 100;
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js
index b6d06142e..c905856ef 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-21.js
@@ -9,24 +9,24 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-var proto = {};
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
+ var child = new Con();
+ child.length = 2;
assert(Array.prototype.every.call(child, callbackfn), 'Array.prototype.every.call(child, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js
index 9477b201f..aaa682d44 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-22.js
@@ -9,17 +9,17 @@ description: >
accessor property without a get function on an Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return typeof val === "undefined";
+ }
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
assert([, ].every(callbackfn), '[, ].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js
index c39d50664..2900f5033 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-25.js
@@ -10,16 +10,16 @@ description: >
less than number of parameters)
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val === 11;
+ }
-var func = function(a, b) {
- return Array.prototype.every.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.every.call(arguments, callbackfn);
+ };
assert(func(11), 'func(11) !== true');
assert.sameValue(called, 1, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js
index 3e1c7da80..6e636fbb9 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-26.js
@@ -10,22 +10,22 @@ description: >
number of parameters)
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- if (idx === 0) {
- return val === 11;
- } else if (idx === 1) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (idx === 0) {
+ return val === 11;
+ } else if (idx === 1) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.every.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.every.call(arguments, callbackfn);
+ };
assert(func(11, 9), 'func(11, 9) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js
index 2002d812a..c1c2719de 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-27.js
@@ -10,22 +10,22 @@ description: >
greater than number of parameters)
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- if (idx < 2) {
- return val > 10;
- } else if (idx === 2) {
- return val < 10;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (idx < 2) {
+ return val > 10;
+ } else if (idx === 2) {
+ return val < 10;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.every.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.every.call(arguments, callbackfn);
+ };
assert(func(11, 12, 9), 'func(11, 12, 9) !== true');
assert.sameValue(called, 3, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js
index 425efe589..d39ed23c0 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-28.js
@@ -9,30 +9,30 @@ description: >
iterations is observed on an Array
---*/
-var preIterVisible = false;
-var arr = [];
+ var preIterVisible = false;
+ var arr = [];
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 11;
- }
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 11;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js
index 90c121c97..dbc91eb15 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-29.js
@@ -9,32 +9,30 @@ description: >
iterations is observed on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var preIterVisible = false;
-var obj = {
- length: 2
-};
+ var preIterVisible = false;
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 13;
- }
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 13;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js
index d0eac70c0..c4fe3a814 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-3.js
@@ -9,24 +9,21 @@ description: >
property that overrides an inherited data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === 100;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === 100;
+ } else {
+ return true;
+ }
+ }
-var proto = {
- 0: 11,
- 5: 100
-};
+ var proto = { 0: 11, 5: 100 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[5] = "abc";
-child.length = 10;
+ var child = new Con();
+ child[5] = "abc";
+ child.length = 10;
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js
index 04f0d5138..3bd5fd649 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-30.js
@@ -9,28 +9,22 @@ description: >
terminate iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
-}
-
-var obj = {
- 0: 11,
- 5: 10,
- 10: 8,
- length: 20
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 0: 11, 5: 10, 10: 8, length: 20 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.every.call(obj, callbackfn);
+ Array.prototype.every.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js
index b28796ac8..3214e3376 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-31.js
@@ -9,26 +9,25 @@ description: >
terminate iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
-}
+ var arr = [];
+ arr[5] = 10;
+ arr[10] = 100;
-var arr = [];
-arr[5] = 10;
-arr[10] = 100;
-
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.every(callbackfn);
+ arr.every(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js
index d9e81c6df..9c598c783 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-4.js
@@ -9,15 +9,14 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val === 12;
+ }
-function callbackfn(val, idx, obj) {
- called++;
- return val === 12;
-}
-
-Array.prototype[0] = 11;
-Array.prototype[1] = 11;
+ Array.prototype[0] = 11;
+ Array.prototype[1] = 11;
assert([12, 12].every(callbackfn), '[12, 12].every(callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js
index 25c267078..988ac8f6e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-5.js
@@ -10,32 +10,32 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 5;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 5;
+ } else {
+ return true;
+ }
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: 11,
- configurable: true
-});
-child[1] = 12;
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: 11,
+ configurable: true
+ });
+ child[1] = 12;
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js
index 9575fe8ad..da98350be 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-6.js
@@ -9,19 +9,19 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val === 11;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 9;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 9;
+ },
+ configurable: true
+ });
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js
index 10d9ab7db..f0d11eb5b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-7.js
@@ -9,24 +9,22 @@ description: >
property on an Array-like object
---*/
-var kValue = 'abc';
+ var kValue = 'abc';
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val !== kValue;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val !== kValue;
+ } else {
+ return true;
+ }
+ }
-var proto = {
- 5: kValue
-};
+ var proto = { 5: kValue };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
assert.sameValue(Array.prototype.every.call(child, callbackfn), false, 'Array.prototype.every.call(child, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js
index 507af757a..f36b54236 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-8.js
@@ -9,14 +9,14 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val !== 13;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val !== 13;
+ } else {
+ return true;
+ }
+ }
-Array.prototype[1] = 13;
+ Array.prototype[1] = 13;
assert.sameValue([, , , ].every(callbackfn), false, '[, , , ].every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js
index 49392cb8a..5b37f8ab4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-i-9.js
@@ -9,25 +9,22 @@ description: >
property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val !== 11;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val !== 11;
+ } else {
+ return true;
+ }
+ }
-var obj = {
- 10: 10,
- length: 20
-};
+ var obj = { 10: 10, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js
index fff7c361c..559925a69 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-1.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.16-7-c-ii-1
description: Array.prototype.every - callbackfn called with correct parameters
---*/
-function callbackfn(val, Idx, obj)
-{
- if (obj[Idx] === val)
- return true;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ if(obj[Idx] === val)
+ return true;
+ }
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js
index 118130921..3a67002bf 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-10.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val) {
- called++;
- return val > 10;
-}
+ function callbackfn(val) {
+ called++;
+ return val > 10;
+ }
assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js
index 1ed6ecb0d..41797d60c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-11.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx) {
- called++;
- return val > 10 && arguments[2][idx] === val;
-}
+ function callbackfn(val, idx) {
+ called++;
+ return val > 10 && arguments[2][idx] === val;
+ }
assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js
index 62eefe55b..0724d0b3f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-12.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val > 10 && obj[idx] === val;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val > 10 && obj[idx] === val;
+ }
assert([11, 12, 13].every(callbackfn), '[11, 12, 13].every(callbackfn) !== true');
assert.sameValue(called, 3, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js
index 8f30c0a8c..340b49aff 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-13.js
@@ -9,12 +9,12 @@ description: >
get parameter value
---*/
-var called = 0;
+ var called = 0;
-function callbackfn() {
- called++;
- return arguments[2][arguments[1]] === arguments[0];
-}
+ function callbackfn() {
+ called++;
+ return arguments[2][arguments[1]] === arguments[0];
+ }
assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js
index 379efe765..f9a5dc890 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-16.js
@@ -9,17 +9,14 @@ description: >
when T is not an object (T is a boolean primitive)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() !== false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() !== false;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert.sameValue(Array.prototype.every.call(obj, callbackfn, false), false, 'Array.prototype.every.call(obj, callbackfn, false)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js
index f9d83678e..3732ea441 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js
@@ -9,17 +9,14 @@ description: >
when T is not an object (T is a number primitive)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, o) {
- accessed = true;
- return 5 === this.valueOf();
-}
+ function callbackfn(val, idx, o) {
+ accessed = true;
+ return 5 === this.valueOf();
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert(Array.prototype.every.call(obj, callbackfn, 5), 'Array.prototype.every.call(obj, callbackfn, 5) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js
index 17c1668bc..3392433cb 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-18.js
@@ -9,17 +9,14 @@ description: >
when T is not an object (T is a string primitive)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 'hello' === this.valueOf();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 'hello' === this.valueOf();
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert(Array.prototype.every.call(obj, callbackfn, "hello"), 'Array.prototype.every.call(obj, callbackfn, "hello") !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js
index cc7626465..f861f38e6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-19.js
@@ -7,19 +7,14 @@ es5id: 15.4.4.16-7-c-ii-19
description: Array.prototype.every - non-indexed properties are not called
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val !== 8;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val !== 8;
+ }
-var obj = {
- 0: 11,
- 10: 12,
- non_index_property: 8,
- length: 20
-};
+ var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js
index daacdfda4..0194ce387 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-2.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.16-7-c-ii-2
description: Array.prototype.every - callbackfn takes 3 arguments
---*/
-function callbackfn(val, Idx, obj)
-{
- if (arguments.length === 3) //verify if callbackfn was called with 3 parameters
- return true;
-}
+ function callbackfn(val, Idx, obj)
+ {
+ if(arguments.length === 3) //verify if callbackfn was called with 3 parameters
+ return true;
+ }
-var arr = [0, 1, true, null, new Object(), "five"];
-arr[999999] = -6.6;
+ var arr = [0,1,true,null,new Object(),"five"];
+ arr[999999] = -6.6;
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js
index 23fe1f4c1..9cb001e0c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js
@@ -9,20 +9,15 @@ description: >
(thisArg is correct)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 10 === this.threshold;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 10 === this.threshold;
+ }
-var thisArg = {
- threshold: 10
-};
+ var thisArg = { threshold: 10 };
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert(Array.prototype.every.call(obj, callbackfn, thisArg), 'Array.prototype.every.call(obj, callbackfn, thisArg) !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js
index 415365713..2d193c698 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-21.js
@@ -9,25 +9,21 @@ description: >
(kValue is correct)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 0) {
- return val === 11;
- }
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 0) {
+ return val === 11;
+ }
- if (idx === 1) {
- return val === 12;
- }
+ if (idx === 1) {
+ return val === 12;
+ }
-}
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js
index bd56fc0a9..524d61965 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-22.js
@@ -9,25 +9,21 @@ description: >
(the index k is correct)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (val === 11) {
- return idx === 0;
- }
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (val === 11) {
+ return idx === 0;
+ }
- if (val === 12) {
- return idx === 1;
- }
+ if (val === 12) {
+ return idx === 1;
+ }
-}
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js
index 59a1e5566..e5567884b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-23.js
@@ -9,17 +9,13 @@ description: >
(this object O is correct)
---*/
-var called = 0;
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var called = 0;
+ var obj = { 0: 11, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- called++;
- return obj === o;
-}
+ function callbackfn(val, idx, o) {
+ called++;
+ return obj === o;
+ }
assert(Array.prototype.every.call(obj, callbackfn), 'Array.prototype.every.call(obj, callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js
index f35df8913..39da9d01f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-3.js
@@ -9,18 +9,17 @@ description: >
returns false
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ if(idx > 5)
+ return false;
+ else
+ return true;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- if (idx > 5)
- return false;
- else
- return true;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.every(callbackfn), false, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js
index 07a4d691a..9a4216a67 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-4.js
@@ -9,19 +9,18 @@ description: >
order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = 0;
-var called = 0;
-
-function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- return false;
- } else {
- lastIdx++;
- return true;
- }
-}
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = 0;
+ var called = 0;
+ function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ return false;
+ } else {
+ lastIdx++;
+ return true;
+ }
+ }
assert(arr.every(callbackfn), 'arr.every(callbackfn) !== true');
assert.sameValue(arr.length, called, 'arr.length');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js
index f604f9672..edd62427f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-5.js
@@ -9,24 +9,24 @@ description: >
iteration and not prior to starting the loop on an Array
---*/
-var called = 0;
-var kIndex = [];
+ var called = 0;
+ var kIndex = [];
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- called++;
- //Each position should be visited one time, which means k is accessed one time during iterations.
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
- return false;
- }
- kIndex[idx] = 1;
- return true;
- } else {
- return false;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ called++;
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
+ return false;
+ }
+ kIndex[idx] = 1;
+ return true;
+ } else {
+ return false;
+ }
+ }
assert([11, 12, 13, 14].every(callbackfn, undefined), '[11, 12, 13, 14].every(callbackfn, undefined) !== true');
assert.sameValue(called, 4, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js
index df9f83143..d1c33e967 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-6.js
@@ -7,20 +7,17 @@ es5id: 15.4.4.16-7-c-ii-6
description: Array.prototype.every - arguments to callbackfn are self consistent
---*/
-var accessed = false;
-var thisArg = {};
-var obj = {
- 0: 11,
- length: 1
-};
+ var accessed = false;
+ var thisArg = {};
+ var obj = { 0: 11, length: 1 };
-function callbackfn() {
- accessed = true;
- return this === thisArg &&
- arguments[0] === 11 &&
- arguments[1] === 0 &&
- arguments[2] === obj;
-}
+ function callbackfn() {
+ accessed = true;
+ return this === thisArg &&
+ arguments[0] === 11 &&
+ arguments[1] === 0 &&
+ arguments[2] === obj;
+ }
assert(Array.prototype.every.call(obj, callbackfn, thisArg), 'Array.prototype.every.call(obj, callbackfn, thisArg) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js
index c1a6345d8..d3f0f8eff 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-7.js
@@ -9,25 +9,20 @@ description: >
callbackfn terminate iteration
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- if (called === 1) {
- throw new Test262Error("Exception occurred in callbackfn");
- }
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (called === 1) {
+ throw new Test262Error("Exception occurred in callbackfn");
+ }
+ return true;
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Test262Error, function() {
- Array.prototype.every.call(obj, callbackfn);
+ Array.prototype.every.call(obj, callbackfn);
});
assert.sameValue(called, 1, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js
index 6f015b207..26fb2b97a 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-8.js
@@ -9,18 +9,14 @@ description: >
iterations is observed
---*/
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- if (idx === 0) {
- obj[idx + 1] = 8;
- }
- return val > 10;
-}
+ function callbackfn(val, idx, o) {
+ if (idx === 0) {
+ obj[idx + 1] = 8;
+ }
+ return val > 10;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js
index b03364275..dfc3894db 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-9.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn() {
- called++;
- return true;
-}
+ function callbackfn() {
+ called++;
+ return true;
+ }
assert([11, 12].every(callbackfn), '[11, 12].every(callbackfn) !== true');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js
index bafc7b841..f29e4f155 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-1.js
@@ -7,16 +7,13 @@ es5id: 15.4.4.16-7-c-iii-1
description: Array.prototype.every - return value of callbackfn is undefined
---*/
-var accessed = false;
-var obj = {
- 0: 11,
- length: 1
-};
+ var accessed = false;
+ var obj = { 0: 11, length: 1 };
-function callbackfn(val, idx, o) {
- accessed = true;
- return undefined;
-}
+ function callbackfn(val, idx, o) {
+ accessed = true;
+ return undefined;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js
index f495dd02c..6f806273d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-10.js
@@ -9,12 +9,12 @@ description: >
(value is Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return Infinity;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js
index b761964ae..923f6e28b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-11.js
@@ -9,12 +9,12 @@ description: >
(value is -Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return -Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return -Infinity;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js
index 0ac2e5536..a8ee187e3 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-12.js
@@ -9,12 +9,12 @@ description: >
(value is NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return NaN;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return NaN;
+ }
assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js
index 931cb99ca..4185bfa74 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-13.js
@@ -9,12 +9,12 @@ description: >
string
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return "";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return "";
+ }
assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js
index ce75448e9..5e7cbea1c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-14.js
@@ -9,12 +9,12 @@ description: >
string
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return "non-empty string";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return "non-empty string";
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js
index 0ab89ec09..2b577983b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-15.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return function() {};
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return function () { };
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js
index f7f6f6873..eec81ccd6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-16.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return [];
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return [];
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js
index 273fb64fd..bdf6d7314 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-17.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new String();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new String();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js
index 7cde6eabf..37d3ecc27 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-18.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new Boolean();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new Boolean();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js
index 7306e5e45..f9ef17f28 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-19.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new Number();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new Number();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js
index 62e4d0589..7084a3776 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-2.js
@@ -7,16 +7,13 @@ es5id: 15.4.4.16-7-c-iii-2
description: Array.prototype.every - return value of callbackfn is null
---*/
-var accessed = false;
-var obj = {
- 0: 11,
- length: 1
-};
+ var accessed = false;
+ var obj = { 0: 11, length: 1 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return null;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return null;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js
index 2026f6357..7a68faf9f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-20.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return Math;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return Math;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js
index 3b16afa42..ef6432c3d 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-21.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.16-7-c-iii-21
description: Array.prototype.every - return value of callbackfn is a Date object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new Date();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new Date();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js
index 3616be141..b7b1437a8 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-22.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new RegExp();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new RegExp();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js
index 87151094b..80b30b5f6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-23.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return JSON;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return JSON;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js
index 7141b6a71..3075fcdb6 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-24.js
@@ -9,12 +9,12 @@ description: >
object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new EvalError();
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new EvalError();
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js
index 8efc3f174..fcfc6b35c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-25.js
@@ -9,12 +9,12 @@ description: >
Arguments object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return arguments;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return arguments;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js
index 2b650660b..5f962f32f 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-27.js
@@ -10,12 +10,12 @@ description: >
---*/
var global = this;
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return global;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return global;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js
index 0475c7ff5..7c1df38b4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-28.js
@@ -7,39 +7,37 @@ es5id: 15.4.4.16-7-c-iii-28
description: Array.prototype.every - false prevents further side effects
---*/
-var result = false;
-var obj = {
- length: 20
-};
+ var result = false;
+ var obj = { length: 20 };
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- result = true;
- }
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ result = true;
+ }
+ return val > 10;
+ }
-Object.defineProperty(obj, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- return 8;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 8;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- get: function() {
- result = true;
- return 8;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ result = true;
+ return 8;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
assert.sameValue(result, false, 'result');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js
index 7571d0ec3..796bd2ea5 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-29.js
@@ -9,12 +9,12 @@ description: >
callbackfn is treated as true value
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return new Boolean(false);
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return new Boolean(false);
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js
index bcd7891c7..c8583c061 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-3.js
@@ -9,16 +9,13 @@ description: >
(value is false)
---*/
-var accessed = false;
-var obj = {
- 0: 11,
- length: 1
-};
+ var accessed = false;
+ var obj = { 0: 11, length: 1 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return false;
+ }
assert.sameValue(Array.prototype.every.call(obj, callbackfn), false, 'Array.prototype.every.call(obj, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js
index 34469360c..31b4185b9 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-4.js
@@ -9,16 +9,13 @@ description: >
(value is true)
---*/
-var accessed = false;
-var obj = {
- 0: 11,
- length: 1
-};
+ var accessed = false;
+ var obj = { 0: 11, length: 1 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js
index b1ce805ac..93790b433 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-5.js
@@ -9,12 +9,12 @@ description: >
(value is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 0;
+ }
assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js
index 5ca005865..fc0eaa069 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-6.js
@@ -9,12 +9,12 @@ description: >
(value is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return +0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return +0;
+ }
assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js
index 3b152c86b..4ec5e4a5e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-7.js
@@ -9,12 +9,12 @@ description: >
(value is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return -0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return -0;
+ }
assert.sameValue([11].every(callbackfn), false, '[11].every(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js
index 0c2b63f00..59a89680e 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-8.js
@@ -9,12 +9,12 @@ description: >
(value is positive number)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 5;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 5;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js
index 1830a7d9a..18ff44cc4 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-iii-9.js
@@ -9,12 +9,12 @@ description: >
(value is negative number)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return -5;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return -5;
+ }
assert([11].every(callbackfn), '[11].every(callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js
index e5fb2db83..d074dbf34 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.16-8-1
description: Array.prototype.every returns true if 'length' is 0 (empty array)
---*/
-function cb() {}
-var i = [].every(cb);
+ function cb() {}
+ var i = [].every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js
index a865a6c4b..e69633f91 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-10.js
@@ -7,20 +7,19 @@ es5id: 15.4.4.16-8-10
description: Array.prototype.every - subclassed array when length is reduced
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 2;
-function foo() {}
-var f = new foo();
-f.length = 2;
-
-function cb(val)
-{
- if (val > 2)
- return false;
- else
- return true;
-}
-var i = f.every(cb);
+ function cb(val)
+ {
+ if(val>2)
+ return false;
+ else
+ return true;
+ }
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js
index b407fe4e7..9403b2acd 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-11.js
@@ -9,15 +9,14 @@ description: >
return true
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return true;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return true;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js
index 7100aecd5..844e0bf62 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-12.js
@@ -9,12 +9,12 @@ description: >
called on
---*/
-function callbackfn(val, idx, obj)
-{
- return true;
-}
-var arr = [1, 2, 3, 4, 5];
-arr.every(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return true;
+ }
+ var arr = [1,2,3,4,5];
+ arr.every(callbackfn);
assert.sameValue(arr[0], 1, 'arr[0]');
assert.sameValue(arr[1], 2, 'arr[1]');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js
index 66b56af96..3a41b2c36 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-13.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.16-8-13
description: Array.prototype.every doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return true;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return true;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-arr["i"] = 10;
-arr[true] = 11;
+ var arr = [0,1,2,3,4,5,6,7,8,9];
+ arr["i"] = 10;
+ arr[true] = 11;
assert.sameValue(arr.every(callbackfn), true, 'arr.every(callbackfn)');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js
index 90ef805f6..9d9d694b1 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-2.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
-var i = f.every(cb);
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js
index 746ea3c4d..6cf241998 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-3.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
-var i = f.every(cb);
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js
index 802f85d32..f296ed79c 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-4.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to 0 (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
-var i = f.every(cb);
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js
index cd8513fb4..49d510f6b 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-5.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to '0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
-var i = f.every(cb);
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js
index 17d0d8834..de58615e3 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-6.js
@@ -9,20 +9,15 @@ description: >
Array, length overridden with obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
-var i = f.every(cb);
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js
index f23dc8cff..170831065 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-7.js
@@ -9,25 +9,20 @@ description: >
Array, length overridden with obj w/o valueOf (toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-function cb() {}
-var i = f.every(cb);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js b/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js
index 75f2878c3..8d1854e45 100644
--- a/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js
+++ b/test/built-ins/Array/prototype/every/15.4.4.16-8-8.js
@@ -9,29 +9,28 @@ description: >
Array, length overridden with []
---*/
-foo.prototype = new Array(1, 2, 3);
-
-function foo() {}
-var f = new foo();
-
-f.length = [];
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-var i = f.every(cb);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ f.length = [];
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+
+ function cb(){}
+ var i = f.every(cb);
assert.sameValue(i, true, 'i');
diff --git a/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js b/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js
index ce34f42d8..d445b9304 100644
--- a/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js
+++ b/test/built-ins/Array/prototype/fill/fill-values-custom-start-and-end.js
@@ -24,4 +24,4 @@ assert(compareArray([0, 0, 0].fill(8, 1, 2), [0, 8, 0]));
assert(compareArray([0, 0, 0, 0, 0].fill(8, -3, 4), [0, 0, 8, 8, 0]));
assert(compareArray([0, 0, 0, 0, 0].fill(8, -2, -1), [0, 0, 0, 8, 0]));
assert(compareArray([0, 0, 0, 0, 0].fill(8, -1, -3), [0, 0, 0, 0, 0]));
-assert(compareArray([, , , , 0].fill(8, 1, 3), [, 8, 8, , 0]));
+assert(compareArray([ , , , , 0].fill(8, 1, 3), [, 8, 8, , 0]));
diff --git a/test/built-ins/Array/prototype/fill/fill-values.js b/test/built-ins/Array/prototype/fill/fill-values.js
index 43f119f27..ab2cf19d0 100644
--- a/test/built-ins/Array/prototype/fill/fill-values.js
+++ b/test/built-ins/Array/prototype/fill/fill-values.js
@@ -28,7 +28,8 @@ includes: [compareArray.js]
assert(compareArray([].fill(8), []));
assert(compareArray(
- [0, 0].fill(), [undefined, undefined]
+ [0, 0].fill(),
+ [undefined, undefined]
));
assert(
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js
index c9b561676..c9d811439 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.filter applied to undefined throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.filter.call(undefined); // TypeError is thrown if value is undefined
+ Array.prototype.filter.call(undefined); // TypeError is thrown if value is undefined
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js
index 9fa42cba0..f56c19437 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-10.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.20-1-10
description: Array.prototype.filter applied to the Math object
---*/
-function callbackfn(val, idx, obj) {
- return '[object Math]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object Math]' === Object.prototype.toString.call(obj);
+ }
-Math.length = 1;
-Math[0] = 1;
-var newArr = Array.prototype.filter.call(Math, callbackfn);
+ Math.length = 1;
+ Math[0] = 1;
+ var newArr = Array.prototype.filter.call(Math, callbackfn);
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js
index 19703f190..d9e730234 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-11.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-1-11
description: Array.prototype.filter applied to Date object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Date;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Date;
+ }
-var obj = new Date();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js
index 09a5dbb37..9a7404b58 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-12.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-1-12
description: Array.prototype.filter applied to RegExp object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof RegExp;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof RegExp;
+ }
-var obj = new RegExp();
-obj.length = 2;
-obj[1] = true;
+ var obj = new RegExp();
+ obj.length = 2;
+ obj[1] = true;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], true, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js
index fbeaacc89..b5e440512 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-13.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.20-1-13
description: Array.prototype.filter applied to the JSON object
---*/
-function callbackfn(val, idx, obj) {
- return '[object JSON]' === Object.prototype.toString.call(JSON);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object JSON]' === Object.prototype.toString.call(JSON);
+ }
-JSON.length = 1;
-JSON[0] = 1;
-var newArr = Array.prototype.filter.call(JSON, callbackfn);
+ JSON.length = 1;
+ JSON[0] = 1;
+ var newArr = Array.prototype.filter.call(JSON, callbackfn);
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js
index 0b9f3060a..7e77b5403 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-14.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-1-14
description: Array.prototype.filter applied to Error object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Error;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Error;
+ }
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js
index 0be84b256..314f8cf65 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-15.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-1-15
description: Array.prototype.filter applied to the Arguments object
---*/
-function callbackfn(val, idx, obj) {
- return '[object Arguments]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object Arguments]' === Object.prototype.toString.call(obj);
+ }
-var obj = (function() {
- return arguments;
-}("a", "b"));
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], "a", 'newArr[0]');
assert.sameValue(newArr[1], "b", 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js
index 70e775afe..3c4abb006 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.filter applied to null throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.filter.call(null);
+ Array.prototype.filter.call(null);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js
index 95aaebd9e..c8ed73db1 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-3.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.20-1-3
description: Array.prototype.filter applied to boolean primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-Boolean.prototype[0] = true;
-Boolean.prototype.length = 1;
+ Boolean.prototype[0] = true;
+ Boolean.prototype.length = 1;
-var newArr = Array.prototype.filter.call(false, callbackfn);
+ var newArr = Array.prototype.filter.call(false, callbackfn);
assert.sameValue(newArr[0], true, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js
index e7b7d2fdc..17517c532 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-4.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.20-1-4
description: Array.prototype.filter applied to Boolean Object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert.sameValue(newArr[1], 12, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js
index 4e8c4ffd5..114e360ab 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-5.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.20-1-5
description: Array.prototype.filter applied to number primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-Number.prototype[0] = 1;
-Number.prototype.length = 1;
+ Number.prototype[0] = 1;
+ Number.prototype.length = 1;
-var newArr = Array.prototype.filter.call(2.5, callbackfn);
+ var newArr = Array.prototype.filter.call(2.5, callbackfn);
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js
index 6f4bb4eb2..d73da1d91 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-6.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.20-1-6
description: Array.prototype.filter applied to Number object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert.sameValue(newArr[1], 12, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js
index c7a70ad25..8e85e3a8d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-7.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.20-1-7
description: Array.prototype.filter applied to string primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
-var newArr = Array.prototype.filter.call("abc", callbackfn);
+ var newArr = Array.prototype.filter.call("abc", callbackfn);
assert.sameValue(newArr[0], "a", 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js
index 35438987c..84df1f7aa 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-8.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.20-1-8
description: Array.prototype.filter applied to String object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
-var obj = new String("abc");
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = new String("abc");
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], "a", 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js
index 01e194a56..b64de3811 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-1-9.js
@@ -7,17 +7,17 @@ es5id: 15.4.4.20-1-9
description: Array.prototype.filter applied to Function object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Function;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Function;
+ }
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert.sameValue(newArr[1], 9, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js
index 803469954..d554b6850 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-1.js
@@ -9,12 +9,12 @@ description: >
called on
---*/
-function callbackfn(val, idx, obj)
-{
- return true;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr.filter(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return true;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr.filter(callbackfn);
assert.sameValue(srcArr[0], 1, 'srcArr[0]');
assert.sameValue(srcArr[1], 2, 'srcArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js
index 5bd456a8e..4ef4c19ab 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-2.js
@@ -9,15 +9,15 @@ description: >
number of true returned by callbackfn
---*/
-function callbackfn(val, idx, obj)
-{
- if (val % 2)
- return true;
- else
- return false;
-}
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.filter(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ if(val % 2)
+ return true;
+ else
+ return false;
+ }
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 3, 'resArr.length');
assert.sameValue(resArr[0], 1, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js
index a20ae4f18..6d278d962 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-3.js
@@ -7,16 +7,13 @@ es5id: 15.4.4.20-10-3
description: Array.prototype.filter - subclassed array when length is reduced
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 1;
-function foo() {}
-var f = new foo();
-f.length = 1;
-
-function cb() {
- return true;
-}
-var a = f.filter(cb);
+ function cb(){return true;}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js
index 10e8fa029..fa6b6603f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-10-4.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.20-10-4
description: Array.prototype.filter doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr["i"] = 10;
+ srcArr[true] = 11;
-function callbackfn(val, idx, obj)
-{
- callCnt++;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr["i"] = 10;
-srcArr[true] = 11;
-
-var resArr = srcArr.filter(callbackfn);
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(callCnt, 5, 'callCnt');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js
index 68c19c6a6..ef11a8172 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-1.js
@@ -9,17 +9,17 @@ description: >
own data property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js
index 683217637..7ef499298 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-10.js
@@ -9,27 +9,27 @@ description: >
inherited accessor property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js
index 8a55f62fb..b707e5159 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js
@@ -9,23 +9,22 @@ description: >
own accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js
index b5983c280..40c49cf05 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-12.js
@@ -9,30 +9,26 @@ description: >
a get function that overrides an inherited accessor property
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var obj = { 0: 12, 1: 11 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 12,
- 1: 11
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js
index 25652960d..b35a71c92 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-13.js
@@ -9,27 +9,26 @@ description: >
'length' is inherited accessor property without a get function
---*/
-var accessed = false;
-
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
-
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
-
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
+
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
+
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js
index 545d914e6..64b7059d8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-14.js
@@ -9,19 +9,15 @@ description: >
'length property doesn't exist
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ var obj = { 0: 11, 1: 12 };
-var obj = {
- 0: 11,
- 1: 12
-};
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js
index 34c579c77..e2ff3af64 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-17.js
@@ -9,13 +9,13 @@ description: >
implements its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var func = function(a, b) {
- var newArr = Array.prototype.filter.call(arguments, callbackfn);
- return newArr.length === 2;
-};
+ var func = function (a, b) {
+ var newArr = Array.prototype.filter.call(arguments, callbackfn);
+ return newArr.length === 2;
+ };
assert(func(12, 11), 'func(12, 11) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js
index c13206d98..6850f6d21 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-18.js
@@ -9,12 +9,12 @@ description: >
its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 3;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 3;
+ }
-var str = new String("012");
+ var str = new String("012");
-var newArr = Array.prototype.filter.call(str, callbackfn);
+ var newArr = Array.prototype.filter.call(str, callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js
index 9bd2ef1c6..5f12746ae 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-19.js
@@ -9,17 +9,17 @@ description: >
implements its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 12;
-fun[1] = 11;
-fun[2] = 9;
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 12;
+ fun[1] = 11;
+ fun[2] = 9;
-var newArr = Array.prototype.filter.call(fun, callbackfn);
+ var newArr = Array.prototype.filter.call(fun, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js
index 8e071501c..f8f1b84d4 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-2.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.20-2-2
description: Array.prototype.filter - 'length' is own data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var newArr = [12, 11].filter(callbackfn);
+ var newArr = [12, 11].filter(callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js
index 4d9c4e414..5e74fafc6 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-3.js
@@ -9,23 +9,21 @@ description: >
an own data property that overrides an inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js
index 73ecc9ed1..563ef3bfc 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-4.js
@@ -9,14 +9,14 @@ description: >
overrides an inherited data property on an Array
---*/
-var arrProtoLen;
+ var arrProtoLen;
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
-var newArr = [12, 11].filter(callbackfn);
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
+ var newArr = [12, 11].filter(callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js
index e165dbc06..ca4c2d21e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-5.js
@@ -9,31 +9,31 @@ description: >
data property that overrides an inherited accessor property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js
index 9a8144cfc..6c754b15b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-6.js
@@ -9,22 +9,20 @@ description: >
an inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js
index ba40ddd23..103cdc888 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-7.js
@@ -9,23 +9,23 @@ description: >
an own accessor property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-obj[0] = 12;
-obj[1] = 11;
-obj[2] = 9;
+ obj[0] = 12;
+ obj[1] = 11;
+ obj[2] = 9;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js
index e57b21228..25b022b3a 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-8.js
@@ -9,30 +9,28 @@ description: >
own accessor property that overrides an inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js
index 684b01b09..4c37454ba 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-2-9.js
@@ -10,35 +10,35 @@ description: >
property
---*/
-function callbackfn(val, idx, obj) {
- return obj.length === 2;
-}
+ function callbackfn(val, idx, obj) {
+ return obj.length === 2;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js
index be48ea578..17cdc5f73 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-1.js
@@ -7,19 +7,14 @@ es5id: 15.4.4.20-3-1
description: Array.prototype.filter - value of 'length' is undefined
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
-
-var obj = {
- 0: 0,
- 1: 1,
- length: undefined
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 0, 1: 1, length: undefined };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js
index 8ef7f0477..63b2c4a18 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-10.js
@@ -9,19 +9,15 @@ description: >
NaN)
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ var obj = { 0: 9, length: NaN };
-var obj = {
- 0: 9,
- length: NaN
-};
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js
index 3bedc20ed..e495a64db 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-11.js
@@ -9,17 +9,13 @@ description: >
positive number
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2"
-};
+ var obj = { 1: 11, 2: 9, length: "2" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js
index bab103450..c66292a88 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-12.js
@@ -9,17 +9,13 @@ description: >
negative number
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "-4294967294"
-};
+ var obj = { 1: 11, 2: 9, length: "-4294967294" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js
index 01d01c256..859ef4667 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-13.js
@@ -9,17 +9,13 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2.5"
-};
+ var obj = { 1: 11, 2: 9, length: "2.5" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js
index 03bcf8a29..03193102f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-14.js
@@ -7,19 +7,16 @@ es5id: 15.4.4.20-3-14
description: Array.prototype.filter - 'length' is a string containing -Infinity
---*/
-var accessed2 = false;
+ var accessed2 = false;
-function callbackfn2(val, idx, obj) {
- accessed2 = true;
- return true;
-}
+ function callbackfn2(val, idx, obj) {
+ accessed2 = true;
+ return true;
+ }
-var obj2 = {
- 0: 9,
- length: "-Infinity"
-};
+ var obj2 = { 0: 9, length: "-Infinity" };
-var newArr2 = Array.prototype.filter.call(obj2, callbackfn2);
+ var newArr2 = Array.prototype.filter.call(obj2, callbackfn2);
assert.sameValue(accessed2, false, 'accessed2');
assert.sameValue(newArr2.length, 0, 'newArr2.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js
index 7cc2cb5f8..e5be122e8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-15.js
@@ -9,17 +9,13 @@ description: >
exponential number
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2E0"
-};
+ var obj = { 1: 11, 2: 9, length: "2E0" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js
index 1e447f105..286093b8b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-16.js
@@ -9,17 +9,13 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0x0002"
-};
+ var obj = { 1: 11, 2: 9, length: "0x0002" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js
index a3c2bf7fa..84b64d402 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-17.js
@@ -9,17 +9,13 @@ description: >
with leading zeros
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0002.00"
-};
+ var obj = { 1: 11, 2: 9, length: "0002.00" };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js
index b42c4c5af..de3c43f57 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-18.js
@@ -9,19 +9,15 @@ description: >
convert to a number
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ var obj = { 0: 9, length: "asdf!_" };
-var obj = {
- 0: 9,
- length: "asdf!_"
-};
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js
index 11ba06792..f1ac554ec 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-19.js
@@ -9,21 +9,21 @@ description: >
an own toString method.
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js
index 4c87b6e3d..3e348991d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-2.js
@@ -9,16 +9,12 @@ description: >
is 1 (length overridden to true(type conversion))
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: true
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: true };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js
index 7b7b93e5b..c8e77de72 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-20.js
@@ -9,21 +9,21 @@ description: >
an own valueOf method.
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js
index c65ba9ca5..01fc372d5 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-21.js
@@ -10,29 +10,29 @@ description: >
returns a string
---*/
-var firstStepOccured = false;
-var secondStepOccured = false;
+ var firstStepOccured = false;
+ var secondStepOccured = false;
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- firstStepOccured = true;
- return {};
- },
- toString: function() {
- secondStepOccured = true;
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ firstStepOccured = true;
+ return {};
+ },
+ toString: function () {
+ secondStepOccured = true;
+ return '2';
+ }
+ }
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js
index 0e4bf3671..a6463ad6a 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-22.js
@@ -10,32 +10,32 @@ description: >
primitive values
---*/
-var accessed = false;
-var firstStepOccured = false;
-var secondStepOccured = false;
+ var accessed = false;
+ var firstStepOccured = false;
+ var secondStepOccured = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 12,
+ var obj = {
+ 1: 11,
+ 2: 12,
- length: {
- valueOf: function() {
- firstStepOccured = true;
- return {};
- },
- toString: function() {
- secondStepOccured = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ firstStepOccured = true;
+ return {};
+ },
+ toString: function () {
+ secondStepOccured = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.filter.call(obj, callbackfn);
+ Array.prototype.filter.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
assert(firstStepOccured, 'firstStepOccured !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js
index c02b3f301..f2e7b2e45 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-23.js
@@ -9,37 +9,37 @@ description: >
is an object with an own toString and inherited valueOf methods
---*/
-var valueOfAccessed = false;
-var toStringAccessed = false;
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
-var obj = {
- 1: 11,
- 2: 9,
- length: child
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: child
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js
index a2cc49a04..31b87b47d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-24.js
@@ -9,17 +9,17 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2.685
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: 2.685
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js
index f32cac694..3f8b1ffd8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-25.js
@@ -9,17 +9,17 @@ description: >
non-integer
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294.5
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+ };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js
index 53fd3ab2c..9b1250407 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-3.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.20-3-3
description: Array.prototype.filter - value of 'length' is a number (value is 0)
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
-
-var obj = {
- 0: 11,
- length: 0
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, length: 0 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js
index d0afc2288..a2a73f274 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-4.js
@@ -9,18 +9,14 @@ description: >
+0)
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
-
-var obj = {
- 0: 11,
- length: +0
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, length: +0 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js
index 675a41cb2..2fa9d19cf 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-5.js
@@ -9,18 +9,14 @@ description: >
-0)
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
-
-var obj = {
- 0: 11,
- length: -0
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, length: -0 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js
index 44e5a2aa1..dd9b8839b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-6.js
@@ -9,17 +9,13 @@ description: >
positive)
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = { 1: 11, 2: 9, length: 2 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js
index b9003218f..28d540592 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-7.js
@@ -9,16 +9,12 @@ description: >
negative)
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 1: 11, 2: 9, length: -4294967294 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js
index 149c2011a..a31259a2e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-3-9.js
@@ -9,19 +9,15 @@ description: >
-Infinity)
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return true;
-}
+ var obj = { 0: 9, length: -Infinity };
-var obj = {
- 0: 9,
- length: -Infinity
-};
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js
index ac03e0fc9..5db65663d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-1
description: Array.prototype.filter throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter();
+ arr.filter();
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js
index bf2dabe14..39f1abd7b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-10.js
@@ -9,18 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.filter.call(obj, undefined);
+ Array.prototype.filter.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js
index 6cefc8ce1..0eabd02ec 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-11.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.filter.call(obj, undefined);
+ Array.prototype.filter.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js
index dce334c24..de1ad7023 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-12.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-4-12
description: Array.prototype.filter - 'callbackfn' is a function
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === 9;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === 9;
+ }
+ return false;
+ }
-var newArr = [11, 9].filter(callbackfn);
+ var newArr = [11, 9].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 9, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js
index 70d48daa7..af35f5776 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-15.js
@@ -9,27 +9,25 @@ description: >
passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.filter.call(obj);
+ Array.prototype.filter.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js
index 511003bbf..07add5f00 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.filter(foo);
+ arr.filter(foo);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js
index 0e557696d..a56dd4e8d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-3
description: Array.prototype.filter throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter(null);
+ arr.filter(null);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js
index d49c8355c..6e9370835 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-4
description: Array.prototype.filter throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter(true);
+ arr.filter(true);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js
index d5a3b5289..6fedc6587 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-5
description: Array.prototype.filter throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter(5);
+ arr.filter(5);
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js
index 5f9d1386b..cef7251b1 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.20-4-6
description: Array.prototype.filter throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter("abc");
+ arr.filter("abc");
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js
index f9e425427..aa1240371 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-7.js
@@ -9,7 +9,7 @@ description: >
without [[Call]] internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.filter(new Object());
+ arr.filter(new Object());
});
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js
index cde11fbf2..fbd5396d8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-8.js
@@ -9,21 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.filter.call(obj, null);
+ Array.prototype.filter.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js
index 45ba29f89..c2e729577 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-4-9.js
@@ -9,25 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.filter.call(obj, null);
+ Array.prototype.filter.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js
index ebbd6c1a4..ce1ad3c7e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1-s.js
@@ -8,14 +8,14 @@ description: Array.prototype.filter - thisArg not passed to strict callbackfn
flags: [noStrict]
---*/
-var innerThisCorrect = false;
+ var innerThisCorrect = false;
-function callbackfn(val, idx, obj) {
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
-[1].filter(callbackfn);
+ [1].filter(callbackfn);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js
index fe1b29057..96063ef48 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-1.js
@@ -9,14 +9,14 @@ flags: [noStrict]
---*/
(function() {
- this._15_4_4_20_5_1 = false;
- var _15_4_4_20_5_1 = true;
+ this._15_4_4_20_5_1 = false;
+ var _15_4_4_20_5_1 = true;
- function callbackfn(val, idx, obj) {
- return this._15_4_4_20_5_1;
- }
- var srcArr = [1];
- var resArr = srcArr.filter(callbackfn);
+ function callbackfn(val, idx, obj) {
+ return this._15_4_4_20_5_1;
+ }
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn);
- assert.sameValue(resArr.length, 0, 'resArr.length');
+assert.sameValue(resArr.length, 0, 'resArr.length');
})();
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js
index a5afd4682..dff16966b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-10.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.20-5-10
description: Array.prototype.filter - Array Object can be used as thisArg
---*/
-var accessed = false;
-var objArray = new Array(10);
+ var accessed = false;
+ var objArray = new Array(10);
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objArray;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objArray;
+ }
-var newArr = [11].filter(callbackfn, objArray);
+ var newArr = [11].filter(callbackfn, objArray);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js
index 0ca6f9f66..93cc528d0 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-11.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-11
description: Array.prototype.filter - String Object can be used as thisArg
---*/
-var accessed = false;
-var objString = new String();
+ var accessed = false;
+ var objString = new String();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objString;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objString;
+ }
-var newArr = [11].filter(callbackfn, objString);
+ var newArr = [11].filter(callbackfn, objString);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js
index 2d7cef46d..d4dc45bda 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-12.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-12
description: Array.prototype.filter - Boolean Object can be used as thisArg
---*/
-var accessed = false;
-var objBoolean = new Boolean();
+ var accessed = false;
+ var objBoolean = new Boolean();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objBoolean;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objBoolean;
+ }
-var newArr = [11].filter(callbackfn, objBoolean);
+ var newArr = [11].filter(callbackfn, objBoolean);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js
index d5cb60c89..621f2def0 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-13.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-13
description: Array.prototype.filter - Number Object can be used as thisArg
---*/
-var accessed = false;
-var objNumber = new Number();
+ var accessed = false;
+ var objNumber = new Number();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objNumber;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objNumber;
+ }
-var newArr = [11].filter(callbackfn, objNumber);
+ var newArr = [11].filter(callbackfn, objNumber);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js
index e455d8d4c..195f95d29 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-14.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-14
description: Array.prototype.filter - the Math object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === Math;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === Math;
+ }
-var newArr = [11].filter(callbackfn, Math);
+ var newArr = [11].filter(callbackfn, Math);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js
index 596addb58..61cb77e50 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-15.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.20-5-15
description: Array.prototype.filter - Date Object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-var objDate = new Date();
+ var objDate = new Date();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objDate;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objDate;
+ }
-var newArr = [11].filter(callbackfn, objDate);
+ var newArr = [11].filter(callbackfn, objDate);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js
index beafca6fd..d7b6b9e23 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-16.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.20-5-16
description: Array.prototype.filter - RegExp Object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-var objRegExp = new RegExp();
+ var objRegExp = new RegExp();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objRegExp;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objRegExp;
+ }
-var newArr = [11].filter(callbackfn, objRegExp);
+ var newArr = [11].filter(callbackfn, objRegExp);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js
index 569a7d691..b326d202c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-17.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-17
description: Array.prototype.filter - the JSON object can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === JSON;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === JSON;
+ }
-var newArr = [11].filter(callbackfn, JSON);
+ var newArr = [11].filter(callbackfn, JSON);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js
index 03516a935..98b455631 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-18.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-18
description: Array.prototype.filter - Error Object can be used as thisArg
---*/
-var accessed = false;
-var objError = new RangeError();
+ var accessed = false;
+ var objError = new RangeError();
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objError;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objError;
+ }
-var newArr = [11].filter(callbackfn, objError);
+ var newArr = [11].filter(callbackfn, objError);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js
index 16869222c..0c69ec037 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-19.js
@@ -9,19 +9,19 @@ description: >
thisArg
---*/
-var accessed = false;
-var arg;
+ var accessed = false;
+ var arg;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === arg;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === arg;
+ }
-(function fun() {
- arg = arguments;
-}(1, 2, 3));
+ (function fun() {
+ arg = arguments;
+ }(1, 2, 3));
-var newArr = [11].filter(callbackfn, arg);
+ var newArr = [11].filter(callbackfn, arg);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js
index 01a3a94d6..0ef3ca82e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-2.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.20-5-2
description: Array.prototype.filter - thisArg is Object
---*/
-var res = false;
-var o = new Object();
-o.res = true;
+ var res = false;
+ var o = new Object();
+ o.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var srcArr = [1];
-var resArr = srcArr.filter(callbackfn, o);
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn,o);
assert.sameValue(resArr.length, 1, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js
index 1e1230bc4..bbb9911ac 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-21.js
@@ -9,14 +9,14 @@ description: Array.prototype.filter - the global object can be used as thisArg
var global = this;
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === global;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === global;
+ }
-var newArr = [11].filter(callbackfn, global);
+ var newArr = [11].filter(callbackfn, global);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js
index b228ea16c..61e3644cf 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-22.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-22
description: Array.prototype.filter - boolean primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === false;
+ }
-var newArr = [11].filter(callbackfn, false);
+ var newArr = [11].filter(callbackfn, false);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js
index b7435cbf2..d07c4c603 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-23.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-23
description: Array.prototype.filter - number primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === 101;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === 101;
+ }
-var newArr = [11].filter(callbackfn, 101);
+ var newArr = [11].filter(callbackfn, 101);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js
index ec99f9b2b..ac195d2b1 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-24.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-24
description: Array.prototype.filter - string primitive can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this.valueOf() === "abc";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this.valueOf() === "abc";
+ }
-var newArr = [11].filter(callbackfn, "abc");
+ var newArr = [11].filter(callbackfn, "abc");
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js
index 691c695e7..06ea3908d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-27.js
@@ -9,6 +9,6 @@ description: >
is the returned array
---*/
-var newArr = [11].filter(function() {});
+ var newArr = [11].filter(function () { });
assert(Array.isArray(newArr), 'Array.isArray(newArr) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js
index 676b5f39b..0f41a07e4 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-28.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.20-5-28
description: Array.prototype.filter - the returned array is instanceof Array
---*/
-var newArr = [11].filter(function() {});
+ var newArr = [11].filter(function () { });
assert(newArr instanceof Array, 'newArr instanceof Array !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js
index 88656b813..49b049b6f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-29.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.20-5-29
description: Array.prototype.filter - returns an array whose length is 0
---*/
-var newArr = [11].filter(function() {});
+ var newArr = [11].filter(function () { });
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js
index 4ab8cdc1c..a9eb5bdd9 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-3.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.20-5-3
description: Array.prototype.filter - thisArg is Array
---*/
-var res = false;
-var a = new Array();
-a.res = true;
+ var res = false;
+ var a = new Array();
+ a.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var srcArr = [1];
-var resArr = srcArr.filter(callbackfn, a);
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn,a);
assert.sameValue(resArr.length, 1, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js
index 8a3fb876f..19311b2ae 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-30.js
@@ -8,16 +8,16 @@ description: Array.prototype.filter - thisArg not passed
flags: [noStrict]
---*/
-function innerObj() {
- this._15_4_4_20_5_30 = true;
- var _15_4_4_20_5_30 = false;
+ function innerObj() {
+ this._15_4_4_20_5_30 = true;
+ var _15_4_4_20_5_30 = false;
- function callbackfn(val, idx, obj) {
- return this._15_4_4_20_5_30;
- }
- var srcArr = [1];
- var resArr = srcArr.filter(callbackfn);
- this.retVal = resArr.length === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return this._15_4_4_20_5_30;
+ }
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn);
+ this.retVal = resArr.length === 0;
+ }
assert(new innerObj().retVal, 'new innerObj().retVal !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js
index 08789d8e3..e4c6b1b24 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-4.js
@@ -9,18 +9,17 @@ description: >
template(prototype)
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.prototype.res = true;
+ var f = new foo();
-function foo() {}
-foo.prototype.res = true;
-var f = new foo();
-
-var srcArr = [1];
-var resArr = srcArr.filter(callbackfn, f);
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn,f);
assert.sameValue(resArr.length, 1, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js
index a024bdc32..a46d82882 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-5.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.20-5-5
description: Array.prototype.filter - thisArg is object from object template
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ var f = new foo();
+ f.res = true;
-function foo() {}
-var f = new foo();
-f.res = true;
-
-var srcArr = [1];
-var resArr = srcArr.filter(callbackfn, f);
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn,f);
assert.sameValue(resArr.length, 1, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js
index 25fa96c97..a76f146d6 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-6.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.20-5-6
description: Array.prototype.filter - thisArg is function
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.res = true;
-function foo() {}
-foo.res = true;
-
-var srcArr = [1];
-var resArr = srcArr.filter(callbackfn, foo);
+ var srcArr = [1];
+ var resArr = srcArr.filter(callbackfn,foo);
assert.sameValue(resArr.length, 1, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js
index 7429c85bc..7563712c2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-7.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.20-5-7
description: Array.prototype.filter - built-in functions can be used as thisArg
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === eval;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === eval;
+ }
-var newArr = [11].filter(callbackfn, eval);
+ var newArr = [11].filter(callbackfn, eval);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js
index 9ab52aa3e..154d0bbdb 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-5-9.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.20-5-9
description: Array.prototype.filter - Function Object can be used as thisArg
---*/
-var accessed = false;
-var objFunction = function() {};
+ var accessed = false;
+ var objFunction = function () { };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return this === objFunction;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return this === objFunction;
+ }
-var newArr = [11].filter(callbackfn, objFunction);
+ var newArr = [11].filter(callbackfn, objFunction);
assert.sameValue(newArr[0], 11, 'newArr[0]');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js
index 719c1490e..aa434d235 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-1.js
@@ -9,8 +9,8 @@ description: >
(empty array)
---*/
-function cb() {}
-var a = [].filter(cb);
+ function cb(){}
+ var a = [].filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
assert.sameValue(a.length, 0, 'a.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js
index 65a07c7a8..a2deb91e5 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-2.js
@@ -9,14 +9,13 @@ description: >
(subclassed Array, length overridden to null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js
index 4e1742878..5da697fe2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-3.js
@@ -9,14 +9,13 @@ description: >
(subclassed Array, length overridden to false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js
index 72579c85e..88d755df8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-4.js
@@ -9,14 +9,13 @@ description: >
(subclassed Array, length overridden to 0 (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js
index 6209e7107..71f4dc489 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-5.js
@@ -9,14 +9,13 @@ description: >
(subclassed Array, length overridden to '0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js
index 0d40729d1..dad709203 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-6.js
@@ -9,20 +9,15 @@ description: >
(subclassed Array, length overridden with obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js
index b212e2511..a778ad888 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js
@@ -10,26 +10,21 @@ description: >
(toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
-var a = f.filter(cb);
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js
index 851aa7a75..1fd2bb792 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-8.js
@@ -9,29 +9,28 @@ description: >
(subclassed Array, length overridden with []
---*/
-foo.prototype = new Array(1, 2, 3);
-
-function foo() {}
-var f = new foo();
-
-f.length = [];
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-var a = f.filter(cb);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ f.length = [];
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+
+ function cb(){}
+ var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js
index 265b9632b..97a92c2de 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-1.js
@@ -9,13 +9,13 @@ description: >
array after it is called
---*/
-function callbackfn(val, idx, obj) {
- srcArr[2] = 3;
- srcArr[5] = 6;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ srcArr[2] = 3;
+ srcArr[5] = 6;
+ return true;
+ }
-var srcArr = [1, 2, , 4, 5];
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [1, 2, , 4, 5];
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js
index 34e27ba56..866e363fc 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-2.js
@@ -9,18 +9,18 @@ description: >
after it is called
---*/
-function callbackfn(val, idx, obj)
-{
- srcArr[2] = -1;
- srcArr[4] = -1;
- if (val > 0)
- return true;
- else
- return false;
-}
+ function callbackfn(val, idx, obj)
+ {
+ srcArr[2] = -1;
+ srcArr[4] = -1;
+ if(val > 0)
+ return true;
+ else
+ return false;
+ }
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 3, 'resArr.length');
assert.sameValue(resArr[0], 1, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js
index 5f14532d2..23cf770ca 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-3.js
@@ -9,18 +9,18 @@ description: >
after the call
---*/
-function callbackfn(val, idx, obj)
-{
- delete srcArr[2];
- delete srcArr[4];
- if (val > 0)
- return true;
- else
- return false;
-}
+ function callbackfn(val, idx, obj)
+ {
+ delete srcArr[2];
+ delete srcArr[4];
+ if(val > 0)
+ return true;
+ else
+ return false;
+ }
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.filter(callbackfn);
// two elements deleted
assert.sameValue(resArr.length, 3, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js
index d3018ec04..9e817d779 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-4.js
@@ -9,13 +9,13 @@ description: >
Array.length is decreased
---*/
-function callbackfn(val, idx, obj)
-{
- srcArr.length = 2;
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ srcArr.length = 2;
+ return true;
+ }
-var srcArr = [1, 2, 3, 4, 6];
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [1,2,3,4,6];
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 2, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js
index 396126ea1..3165b934c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-5.js
@@ -9,15 +9,15 @@ description: >
sparse array
---*/
-function callbackfn(val, idx, obj)
-{
- srcArr[1000] = 3;
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ srcArr[1000] = 3;
+ return true;
+ }
-var srcArr = new Array(10);
-srcArr[1] = 1;
-srcArr[2] = 2;
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = new Array(10);
+ srcArr[1] = 1;
+ srcArr[2] = 2;
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 2, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js
index 0ef2af055..6bbe73b49 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-6.js
@@ -9,20 +9,20 @@ description: >
call when same index is also present in prototype
---*/
-function callbackfn(val, idx, obj)
-{
- delete srcArr[2];
- delete srcArr[4];
- if (val > 0)
- return true;
- else
- return false;
-}
+ function callbackfn(val, idx, obj)
+ {
+ delete srcArr[2];
+ delete srcArr[4];
+ if(val > 0)
+ return true;
+ else
+ return false;
+ }
-Array.prototype[4] = 5;
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.filter(callbackfn);
-delete Array.prototype[4];
+ Array.prototype[4] = 5;
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.filter(callbackfn);
+ delete Array.prototype[4];
// only one element deleted
assert.sameValue(resArr.length, 4, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js
index accd42a60..6733d095d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-7.js
@@ -9,18 +9,18 @@ description: >
deleted during the call
---*/
-var o = new Object();
-o.srcArr = [1, 2, 3, 4, 5];
+ var o = new Object();
+ o.srcArr = [1, 2, 3, 4, 5];
-function callbackfn(val, idx, obj) {
- delete o.srcArr;
- if (val > 0)
- return true;
- else
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ delete o.srcArr;
+ if (val > 0)
+ return true;
+ else
+ return false;
+ }
-var resArr = o.srcArr.filter(callbackfn);
+ var resArr = o.srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
assert.sameValue(typeof o.srcArr, "undefined", 'typeof o.srcArr');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js
index c7fa048ef..6b119020e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-8.js
@@ -7,20 +7,16 @@ es5id: 15.4.4.20-9-8
description: Array.prototype.filter - no observable effects occur if len is 0
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 0
-};
+ var obj = { 0: 11, 1: 12, length: 0 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(obj.length, 0, 'obj.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js
index e0bd841bf..bab2effd5 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-9.js
@@ -9,28 +9,24 @@ description: >
number of iterations
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return true;
+ }
-var obj = {
- 1: 12,
- 2: 9,
- length: 2
-};
+ var obj = { 1: 12, 2: 9, length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- obj.length = 3;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ obj.length = 3;
+ return 11;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js
index 899156930..db984c4cc 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-1.js
@@ -9,17 +9,16 @@ description: >
been assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return false;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return false;
-}
-
-var srcArr = new Array(10);
-srcArr[1] = undefined; //explicitly assigning a value
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = new Array(10);
+ srcArr[1] = undefined; //explicitly assigning a value
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(resArr.length, 0, 'resArr.length');
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js
index d4724b924..c2c66ae19 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-10.js
@@ -9,24 +9,21 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var obj = {
- 2: 2,
- length: 20
-};
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.notSameValue(newArr[1], 1, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js
index 39ea8f0a1..643554ab8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-11.js
@@ -9,21 +9,21 @@ description: >
prototype index property not to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-var newArr = arr.filter(callbackfn);
+ Array.prototype[1] = 1;
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.notSameValue(newArr[1], 1, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js
index 7b914a1ee..18e21b40e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-12.js
@@ -10,26 +10,21 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var obj = {
- 0: 0,
- 1: 111,
- 2: 2,
- length: 10
-};
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var obj = { 0: 0, 1: 111, 2: 2, length: 10 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[1], 1, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js
index 204e94c66..c023e3735 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-13.js
@@ -9,21 +9,21 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return val < 3 ? true : false;
-}
-var arr = [0, 111, 2];
+ function callbackfn(val, idx, obj) {
+ return val < 3 ? true : false;
+ }
+ var arr = [0, 111, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-var newArr = arr.filter(callbackfn);
+ Array.prototype[1] = 1;
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[1], 1, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js
index 00b6a41af..6147fab67 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-14.js
@@ -9,20 +9,20 @@ description: >
property not to be visited
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var arr = [0, 1, 2, "last"];
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var arr = [0, 1, 2, "last"];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js
index 1f87dab30..4e253c64e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-15.js
@@ -9,27 +9,27 @@ description: >
property causes prototype index property to be visited
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[2], "prototype", 'newArr[2]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js
index b92fde3af..c81608958 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-16.js
@@ -10,28 +10,28 @@ description: >
flags: [noStrict]
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[2], "unconfigurable", 'newArr[2]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js
index a9b8cdae4..63ffe45b5 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-2.js
@@ -9,21 +9,21 @@ description: >
here
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], "length", 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js
index fd2a2612e..9201770ac 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-3.js
@@ -9,23 +9,20 @@ description: >
here
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var obj = {
- 2: 6.99,
- 8: 19
-};
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var obj = { 2: 6.99, 8: 19 };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[2];
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 10;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.notSameValue(newArr[0], 6.99, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js
index 61ad18595..81a5e3d11 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-4.js
@@ -9,28 +9,26 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(newArr[1], 6.99, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js
index d2d1fd70c..150eda57c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-5.js
@@ -9,26 +9,26 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[1], 6.99, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js
index d0bc0fb1e..0932eb334 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-6.js
@@ -9,27 +9,25 @@ description: >
after current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var obj = {
- length: 2
-};
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(Array[1], 6.99, 'Array[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js
index 1fea78746..677e3106f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-7.js
@@ -9,25 +9,25 @@ description: >
after current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[1], 6.99, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js
index 0593df24f..00d064e23 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-8.js
@@ -9,32 +9,30 @@ description: >
property not to be visited on an Array-like object
---*/
-var accessed = false;
-var obj = {
- length: 2
-};
+ var accessed = false;
+ var obj = { length: 2 };
-function callbackfn(val, idx, o) {
- accessed = true;
- return true;
-}
+ function callbackfn(val, idx, o) {
+ accessed = true;
+ return true;
+ }
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 0, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js
index 1221c8864..8f1588765 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-b-9.js
@@ -9,27 +9,27 @@ description: >
property not to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
-var arr = [1, 2];
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
+ var arr = [1, 2];
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 0, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js
index de7e415f3..cdfc98323 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-1.js
@@ -9,18 +9,14 @@ description: >
property on an Array-like object
---*/
-var kValue = {};
+ var kValue = {};
+ function callbackfn(val, idx, obj) {
+ return (idx === 5) && (val === kValue);
+ }
-function callbackfn(val, idx, obj) {
- return (idx === 5) && (val === kValue);
-}
+ var obj = { 5: kValue, length: 100 };
-var obj = {
- 5: kValue,
- length: 100
-};
-
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], kValue, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js
index 394268152..b44cba1e3 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-10.js
@@ -9,19 +9,19 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return idx === 2 && val === 12;
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 2 && val === 12;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "2", {
- get: function() {
- return 12;
- },
- configurable: true
-});
-var newArr = arr.filter(callbackfn);
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 12, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js
index a713e1953..dc089ead8 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-11.js
@@ -10,28 +10,25 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return idx === 0 && val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 0 && val === 11;
+ }
-var proto = {
- 0: 5,
- 1: 6
-};
+ var proto = { 0: 5, 1: 6 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-Object.defineProperty(child, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js
index 7dc94d210..bcd3b4287 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-12.js
@@ -9,21 +9,21 @@ description: >
property that overrides an inherited data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return val === 111 && idx === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return val === 111 && idx === 0;
+ }
-var arr = [];
+ var arr = [];
-Array.prototype[0] = 10;
+ Array.prototype[0] = 10;
-Object.defineProperty(arr, "0", {
- get: function() {
- return 111;
- },
- configurable: true
-});
-var newArr = arr.filter(callbackfn);
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 111;
+ },
+ configurable: true
+ });
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 111, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js
index 4a692475a..32d9fa6f4 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-13.js
@@ -10,32 +10,32 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return idx === 1 && val === 12;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 6;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 10;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return 12;
- },
- configurable: true
-});
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ function callbackfn(val, idx, obj) {
+ return idx === 1 && val === 12;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 6;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 10;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 12, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js
index e6f2a95c6..1ccf426ac 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-14.js
@@ -9,26 +9,26 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return idx === 0 && val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 0 && val === 11;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-var newArr = arr.filter(callbackfn);
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js
index 4a7122ea1..d97746c2d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-15.js
@@ -9,25 +9,25 @@ description: >
accessor property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return val === 11 && idx === 1;
-}
+ function callbackfn(val, idx, obj) {
+ return val === 11 && idx === 1;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 20;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var child = new Con();
+ child.length = 20;
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js
index 9a04bb487..82834ff12 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-16.js
@@ -9,17 +9,17 @@ description: >
accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return idx === 0 && val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 0 && val === 11;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-var newArr = [, , , ].filter(callbackfn);
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+ var newArr = [, , , ].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js
index 17bd3f8a7..3b01f8f4c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-17.js
@@ -9,19 +9,17 @@ description: >
property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return undefined === val && idx === 1;
-}
+ function callbackfn(val, idx, obj) {
+ return undefined === val && idx === 1;
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js
index b139b96a6..3cfc401b9 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-18.js
@@ -9,18 +9,18 @@ description: >
property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- return undefined === val && idx === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return undefined === val && idx === 0;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-var newArr = arr.filter(callbackfn);
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js
index af8b5d615..4ff5f9589 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-19.js
@@ -10,20 +10,18 @@ description: >
accessor property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return undefined === val && idx === 1;
-}
+ function callbackfn(val, idx, obj) {
+ return undefined === val && idx === 1;
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.prototype[1] = 10;
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ Object.prototype[1] = 10;
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js
index a129174e7..b2ea87479 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-2.js
@@ -9,13 +9,13 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ }
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js
index fa5905c96..83958a877 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-20.js
@@ -10,19 +10,19 @@ description: >
accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return undefined === val && idx === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return undefined === val && idx === 0;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[0] = 100;
-var newArr = arr.filter(callbackfn);
+ Array.prototype[0] = 100;
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js
index 87bc30149..e4c19177b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-21.js
@@ -9,22 +9,22 @@ description: >
accessor property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return val === undefined && idx === 1;
-}
+ function callbackfn(val, idx, obj) {
+ return val === undefined && idx === 1;
+ }
-var proto = {};
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var child = new Con();
+ child.length = 2;
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js
index ce088257b..5093adca4 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-22.js
@@ -9,15 +9,15 @@ description: >
accessor property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- return undefined === val && idx === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return undefined === val && idx === 0;
+ }
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
-var newArr = [, ].filter(callbackfn);
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
+ var newArr = [, ].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], undefined, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js
index f2288892e..f050065ed 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-25.js
@@ -10,15 +10,15 @@ description: >
less than number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- return val === 11 && idx === 0;
-}
+ function callbackfn(val, idx, obj) {
+ return val === 11 && idx === 0;
+ }
-var func = function(a, b) {
- return Array.prototype.filter.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.filter.call(arguments, callbackfn);
+ };
-var newArr = func(11);
+ var newArr = func(11);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js
index 13eabc564..4c5719f15 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-26.js
@@ -10,20 +10,20 @@ description: >
number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- } else if (idx === 1) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ } else if (idx === 1) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.filter.call(arguments, callbackfn);
-};
-var newArr = func(11, 9);
+ var func = function (a, b) {
+ return Array.prototype.filter.call(arguments, callbackfn);
+ };
+ var newArr = func(11, 9);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js
index 117cbb39b..96927339a 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-27.js
@@ -10,22 +10,22 @@ description: >
greater than number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- } else if (idx === 1) {
- return val === 12;
- } else if (idx === 2) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ } else if (idx === 1) {
+ return val === 12;
+ } else if (idx === 2) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.filter.call(arguments, callbackfn);
-};
-var newArr = func(11, 12, 9);
+ var func = function (a, b) {
+ return Array.prototype.filter.call(arguments, callbackfn);
+ };
+ var newArr = func(11, 12, 9);
assert.sameValue(newArr.length, 3, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js
index 28a3290dc..266d3eb37 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-28.js
@@ -9,32 +9,32 @@ description: >
iterations is observed on an Array
---*/
-var preIterVisible = false;
-var arr = [];
+ var preIterVisible = false;
+ var arr = [];
-function callbackfn(val, idx, obj) {
- return idx === 1 && val === 9;
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 1 && val === 9;
+ }
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 11;
- }
- },
- configurable: true
-});
-var newArr = arr.filter(callbackfn);
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 11;
+ }
+ },
+ configurable: true
+ });
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 9, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js
index f3cce11d7..502971701 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-29.js
@@ -9,34 +9,32 @@ description: >
iterations is observed on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return val === 9 && idx === 1;
-}
+ function callbackfn(val, idx, obj) {
+ return val === 9 && idx === 1;
+ }
-var preIterVisible = false;
-var obj = {
- length: 2
-};
+ var preIterVisible = false;
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 13;
- }
- },
- configurable: true
-});
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 13;
+ }
+ },
+ configurable: true
+ });
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 9, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js
index 1f6b1b8c1..ce761b38f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-3.js
@@ -10,23 +10,20 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return (idx === 5) && (val === "abc");
-}
+ function callbackfn(val, idx, obj) {
+ return (idx === 5) && (val === "abc");
+ }
-var proto = {
- 0: 11,
- 5: 100
-};
+ var proto = { 0: 11, 5: 100 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[5] = "abc";
-child.length = 10;
+ var child = new Con();
+ child[5] = "abc";
+ child.length = 10;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], "abc", 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js
index 01ffb99e0..150a4e013 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-30.js
@@ -9,28 +9,22 @@ description: >
terminate iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
-}
-
-var obj = {
- 0: 11,
- 5: 10,
- 10: 8,
- length: 20
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 0: 11, 5: 10, 10: 8, length: 20 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.filter.call(obj, callbackfn);
+ Array.prototype.filter.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js
index dc86f0848..0eb4d2ecd 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-31.js
@@ -9,26 +9,25 @@ description: >
terminate iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
-}
+ var arr = [];
+ arr[5] = 10;
+ arr[10] = 100;
-var arr = [];
-arr[5] = 10;
-arr[10] = 100;
-
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.filter(callbackfn);
+ arr.filter(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js
index 62273cdb9..39f5a2af2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-4.js
@@ -9,12 +9,12 @@ description: >
property that overrides an inherited data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return (idx === 0) && (val === 12);
-}
+ function callbackfn(val, idx, obj) {
+ return (idx === 0) && (val === 12);
+ }
-Array.prototype[0] = 11;
-var newArr = [12].filter(callbackfn);
+ Array.prototype[0] = 11;
+ var newArr = [12].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 12, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js
index 7f694e993..43000dca2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-5.js
@@ -10,31 +10,31 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return idx === 0 && val === 11;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: 11,
- configurable: true
-});
-child[1] = 12;
-
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ function callbackfn(val, idx, obj) {
+ return idx === 0 && val === 11;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: 11,
+ configurable: true
+ });
+ child[1] = 12;
+
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js
index 17ead0e57..18af4d7ac 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-6.js
@@ -9,17 +9,17 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ return val === 11;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 9;
- },
- configurable: true
-});
-var newArr = [11].filter(callbackfn);
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 9;
+ },
+ configurable: true
+ });
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js
index 2f92dcd61..ec3284966 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-7.js
@@ -9,23 +9,21 @@ description: >
property on an Array-like object
---*/
-var kValue = 'abc';
+ var kValue = 'abc';
-function callbackfn(val, idx, obj) {
- return (idx === 5) && (val === kValue);
-}
+ function callbackfn(val, idx, obj) {
+ return (idx === 5) && (val === kValue);
+ }
-var proto = {
- 5: kValue
-};
+ var proto = { 5: kValue };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-var newArr = Array.prototype.filter.call(child, callbackfn);
+ var newArr = Array.prototype.filter.call(child, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], kValue, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js
index a263ceb34..3de54b2b2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-8.js
@@ -9,12 +9,12 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return (idx === 1) && (val === 13);
-}
+ function callbackfn(val, idx, obj) {
+ return (idx === 1) && (val === 13);
+ }
-Array.prototype[1] = 13;
-var newArr = [, , , ].filter(callbackfn);
+ Array.prototype[1] = 13;
+ var newArr = [, , , ].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 13, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js
index 57aae1177..3e7299486 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-i-9.js
@@ -9,23 +9,20 @@ description: >
property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- return (idx === 0) && (val === 11);
-}
+ function callbackfn(val, idx, obj) {
+ return (idx === 0) && (val === 11);
+ }
-var obj = {
- 10: 10,
- length: 20
-};
+ var obj = { 10: 10, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js
index e29bab335..f635e683c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-1.js
@@ -7,19 +7,18 @@ es5id: 15.4.4.20-9-c-ii-1
description: Array.prototype.filter - callbackfn called with correct parameters
---*/
-var bPar = true;
-var bCalled = false;
+ var bPar = true;
+ var bCalled = false;
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(obj[idx] !== val)
+ bPar = false;
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (obj[idx] !== val)
- bPar = false;
-}
-
-var srcArr = [0, 1, true, null, new Object(), "five"];
-srcArr[999999] = -6.6;
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [0,1,true,null,new Object(),"five"];
+ srcArr[999999] = -6.6;
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js
index 67884f9e5..b7a6a8e0e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-10.js
@@ -9,10 +9,10 @@ description: >
parameter
---*/
-function callbackfn(val) {
- return val > 10;
-}
-var newArr = [12].filter(callbackfn);
+ function callbackfn(val) {
+ return val > 10;
+ }
+ var newArr = [12].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 12, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js
index ca8ee6554..4f5cd0714 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-11.js
@@ -9,10 +9,10 @@ description: >
parameter
---*/
-function callbackfn(val, idx) {
- return val > 10 && arguments[2][idx] === val;
-}
-var newArr = [11].filter(callbackfn);
+ function callbackfn(val, idx) {
+ return val > 10 && arguments[2][idx] === val;
+ }
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js
index 8ef2009e4..400d6ae8a 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-12.js
@@ -9,10 +9,10 @@ description: >
parameter
---*/
-function callbackfn(val, idx, obj) {
- return val > 10 && obj[idx] === val;
-}
-var newArr = [11].filter(callbackfn);
+ function callbackfn(val, idx, obj) {
+ return val > 10 && obj[idx] === val;
+ }
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js
index 59087549b..a51466ee6 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-13.js
@@ -9,10 +9,10 @@ description: >
get parameter value
---*/
-function callbackfn() {
- return arguments[2][arguments[1]] === arguments[0];
-}
-var newArr = [11].filter(callbackfn);
+ function callbackfn() {
+ return arguments[2][arguments[1]] === arguments[0];
+ }
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js
index 44dab4449..6b1ed0278 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-16.js
@@ -9,15 +9,12 @@ description: >
object when T is not an object (T is a boolean)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === false;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn, false);
+ var obj = { 0: 11, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn, false);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js
index 99a2bb143..17022d9b2 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-17.js
@@ -9,15 +9,12 @@ description: >
when T is not an object (T is a number)
---*/
-function callbackfn(val, idx, o) {
- return 5 === this.valueOf();
-}
+ function callbackfn(val, idx, o) {
+ return 5 === this.valueOf();
+ }
-var obj = {
- 0: 11,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn, 5);
+ var obj = { 0: 11, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn, 5);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js
index 73ccf1d5f..bc7ae0099 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-18.js
@@ -9,15 +9,12 @@ description: >
object when T is not an object (T is a string)
---*/
-function callbackfn(val, idx, obj) {
- return 'hello' === this.valueOf();
-}
+ function callbackfn(val, idx, obj) {
+ return 'hello' === this.valueOf();
+ }
-var obj = {
- 0: 11,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn, "hello");
+ var obj = { 0: 11, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn, "hello");
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js
index b2ba6df2b..235694b23 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-19.js
@@ -7,20 +7,15 @@ es5id: 15.4.4.20-9-c-ii-19
description: Array.prototype.filter - non-indexed properties are not called
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val === 8;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val === 8;
+ }
-var obj = {
- 0: 11,
- non_index_property: 8,
- 2: 5,
- length: 20
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, non_index_property: 8, 2: 5, length: 20 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js
index 208ff7aac..52910ae39 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-2.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.20-9-c-ii-2
description: Array.prototype.filter - callbackfn takes 3 arguments
---*/
-var parCnt = 3;
-var bCalled = false
+ var parCnt = 3;
+ var bCalled = false
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(arguments.length !== 3)
+ parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (arguments.length !== 3)
- parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
-}
-
-var srcArr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-var resArr = srcArr.filter(callbackfn);
+ var srcArr = [0,1,2,3,4,5,6,7,8,9];
+ var resArr = srcArr.filter(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
assert.sameValue(parCnt, 3, 'parCnt');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js
index 645621f7e..fc145e234 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-20.js
@@ -9,19 +9,14 @@ description: >
(thisArg is correct)
---*/
-var thisArg = {
- threshold: 10
-};
+ var thisArg = { threshold: 10 };
-function callbackfn(val, idx, obj) {
- return this === thisArg;
-}
+ function callbackfn(val, idx, obj) {
+ return this === thisArg;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg);
+ var obj = { 0: 11, length: 1 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js
index 8c2b37645..1dd9e0853 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-21.js
@@ -9,24 +9,20 @@ description: >
(kValue is correct)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- }
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ }
- if (idx === 1) {
- return val === 12;
- }
+ if (idx === 1) {
+ return val === 12;
+ }
- return false;
-}
+ return false;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 12, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js
index d8f90cbda..1976d0ab9 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-22.js
@@ -9,24 +9,20 @@ description: >
(the index k is correct)
---*/
-function callbackfn(val, idx, obj) {
- if (val === 11) {
- return idx === 0;
- }
+ function callbackfn(val, idx, obj) {
+ if (val === 11) {
+ return idx === 0;
+ }
- if (val === 12) {
- return idx === 1;
- }
+ if (val === 12) {
+ return idx === 1;
+ }
- return false;
-}
+ return false;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 12, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js
index 54813293c..cdb465ca3 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-23.js
@@ -9,16 +9,13 @@ description: >
(this object O is correct)
---*/
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
-function callbackfn(val, idx, o) {
- return obj === o;
-}
+ function callbackfn(val, idx, o) {
+ return obj === o;
+ }
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js
index 5b8e78643..c9a7de747 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-4.js
@@ -9,19 +9,18 @@ description: >
order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = 0;
-var called = 0;
-
-function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- return false;
- } else {
- lastIdx++;
- return true;
- }
-}
-var newArr = arr.filter(callbackfn);
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = 0;
+ var called = 0;
+ function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ return false;
+ } else {
+ lastIdx++;
+ return true;
+ }
+ }
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, called, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js
index f0f5e5df9..dbf9d0d54 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-5.js
@@ -9,25 +9,25 @@ description: >
iteration and not prior to starting the loop on an Array
---*/
-var kIndex = [];
-var called = 0;
+ var kIndex = [];
+ var called = 0;
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- called++;
- //Each position should be visited one time, which means k is accessed one time during iterations.
- if (kIndex[idx] === undefined) {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && kIndex[idx - 1] === undefined) {
- return true;
- }
- kIndex[idx] = 1;
- return false;
- } else {
- return true;
- }
-}
-var newArr = [11, 12, 13, 14].filter(callbackfn, undefined);
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ called++;
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ if (kIndex[idx] === undefined) {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && kIndex[idx - 1] === undefined) {
+ return true;
+ }
+ kIndex[idx] = 1;
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var newArr = [11, 12, 13, 14].filter(callbackfn, undefined);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert.sameValue(called, 4, 'called');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js
index ea27bcafe..6390d908c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-6.js
@@ -9,20 +9,17 @@ description: >
consistent
---*/
-var obj = {
- 0: 11,
- length: 1
-};
-var thisArg = {};
+ var obj = { 0: 11, length: 1 };
+ var thisArg = {};
-function callbackfn() {
- return this === thisArg &&
- arguments[0] === 11 &&
- arguments[1] === 0 &&
- arguments[2] === obj;
-}
+ function callbackfn() {
+ return this === thisArg &&
+ arguments[0] === 11 &&
+ arguments[1] === 0 &&
+ arguments[2] === obj;
+ }
-var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg);
+ var newArr = Array.prototype.filter.call(obj, callbackfn, thisArg);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js
index 68d53c92c..97dfb262b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-7.js
@@ -9,23 +9,18 @@ description: >
callbackfn terminate iteration
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- if (called === 1) {
- throw new Error("Exception occurred in callbackfn");
- }
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (called === 1) {
+ throw new Error("Exception occurred in callbackfn");
+ }
+ return true;
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Error, function() {
- Array.prototype.filter.call(obj, callbackfn);
+ Array.prototype.filter.call(obj, callbackfn);
});
assert.sameValue(called, 1, 'called');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js
index 6f93d5fee..6551c71df 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-8.js
@@ -9,20 +9,16 @@ description: >
iterations is observed
---*/
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- if (idx === 0) {
- obj[idx + 1] = 8;
- }
- return val > 10;
-}
+ function callbackfn(val, idx, o) {
+ if (idx === 0) {
+ obj[idx + 1] = 8;
+ }
+ return val > 10;
+ }
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js
index 382633547..0d6beb147 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-ii-9.js
@@ -9,10 +9,10 @@ description: >
parameter
---*/
-function callbackfn() {
- return true;
-}
-var newArr = [11].filter(callbackfn);
+ function callbackfn() {
+ return true;
+ }
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js
index 32568ef97..cf811e4dd 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-1.js
@@ -9,16 +9,12 @@ description: >
'kValue'
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr[0], obj[0], 'newArr[0]');
assert.sameValue(newArr[1], obj[1], 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js
index 3a9a1dfc0..8acc541e3 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-2.js
@@ -9,18 +9,14 @@ description: >
overwritten
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
-var tempVal = newArr[1];
-newArr[1] += 1;
+ var tempVal = newArr[1];
+ newArr[1] += 1;
assert.notSameValue(newArr[1], tempVal, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js
index 1b641737e..c3d2d718d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-3.js
@@ -9,24 +9,21 @@ description: >
enumerated
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
-var prop;
-var enumerable = false;
-for (prop in newArr) {
- if (newArr.hasOwnProperty(prop)) {
- if (prop === "0") {
- enumerable = true;
- }
- }
-}
+ var prop;
+ var enumerable = false;
+ for (prop in newArr) {
+ if (newArr.hasOwnProperty(prop)) {
+ if (prop === "0") {
+ enumerable = true;
+ }
+ }
+ }
assert(enumerable, 'enumerable !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js
index 18f72dd4c..43d859cc4 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-4.js
@@ -9,19 +9,15 @@ description: >
changed or deleted
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
-var tempVal = newArr[1];
-delete newArr[1];
+ var tempVal = newArr[1];
+ delete newArr[1];
assert.notSameValue(tempVal, undefined, 'tempVal');
assert.sameValue(newArr[1], undefined, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js
index b5a88eb4b..010699ccf 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-5.js
@@ -9,20 +9,19 @@ description: >
numeric order
---*/
-var arr = [0, 1, 2, 3, 4];
-var lastToIdx = 0;
-var called = 0;
-
-function callbackfn(val, idx, obj) {
- called++;
- if (lastToIdx !== idx) {
- return false;
- } else {
- lastToIdx++;
- return true;
- }
-}
-var newArr = arr.filter(callbackfn);
+ var arr = [0, 1, 2, 3, 4];
+ var lastToIdx = 0;
+ var called = 0;
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (lastToIdx !== idx) {
+ return false;
+ } else {
+ lastToIdx++;
+ return true;
+ }
+ }
+ var newArr = arr.filter(callbackfn);
assert.sameValue(newArr.length, 5, 'newArr.length');
assert.sameValue(called, 5, 'called');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js
index 8e9d64fc6..aaad13206 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1-6.js
@@ -10,25 +10,25 @@ description: >
starting the loop
---*/
-var toIndex = [];
-var called = 0;
+ var toIndex = [];
+ var called = 0;
-//By below way, we could verify that 'to' would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- called++;
- //Each position should be visited one time, which means 'to' is accessed one time during iterations.
- if (toIndex[idx] === undefined) {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && toIndex[idx - 1] === undefined) {
- return false;
- }
- toIndex[idx] = 1;
- return true;
- } else {
- return false;
- }
-}
-var newArr = [11, 12, 13, 14].filter(callbackfn, undefined);
+ //By below way, we could verify that 'to' would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ called++;
+ //Each position should be visited one time, which means 'to' is accessed one time during iterations.
+ if (toIndex[idx] === undefined) {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && toIndex[idx - 1] === undefined) {
+ return false;
+ }
+ toIndex[idx] = 1;
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var newArr = [11, 12, 13, 14].filter(callbackfn, undefined);
assert.sameValue(newArr.length, 4, 'newArr.length');
assert.sameValue(called, 4, 'called');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js
index b4090e61d..b6c6e6a61 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-1.js
@@ -9,14 +9,14 @@ description: >
returned array element
---*/
-function callbackfn(val, idx, obj) {
- if (val % 2)
- return true;
- else
- return false;
-}
-var srcArr = [0, 1, 2, 3, 4];
-var resArr = srcArr.filter(callbackfn);
+ function callbackfn(val, idx, obj){
+ if(val % 2)
+ return true;
+ else
+ return false;
+ }
+ var srcArr = [0,1,2,3,4];
+ var resArr = srcArr.filter(callbackfn);
assert(resArr.length > 0, 'resArr.length > 0');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js
index e0095481f..38b9c166b 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-10.js
@@ -9,11 +9,11 @@ description: >
(value is negative number)
---*/
-function callbackfn(val, idx, obj) {
- return -5;
-}
+ function callbackfn(val, idx, obj) {
+ return -5;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js
index f1458a7ec..afdb35685 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-11.js
@@ -9,11 +9,11 @@ description: >
(value is Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ return Infinity;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js
index 3187b31ed..719ee9bc9 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-12.js
@@ -9,11 +9,11 @@ description: >
(value is -Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return -Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ return -Infinity;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js
index 3af7abd32..e78a98f13 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-13.js
@@ -9,14 +9,14 @@ description: >
(value is NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return NaN;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return NaN;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js
index 976eb524d..a9df829af 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-14.js
@@ -9,14 +9,14 @@ description: >
string
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return "";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return "";
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js
index 46d3a541d..c6cac3c3c 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-15.js
@@ -9,11 +9,11 @@ description: >
string
---*/
-function callbackfn(val, idx, obj) {
- return "non-empty string";
-}
+ function callbackfn(val, idx, obj) {
+ return "non-empty string";
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js
index 9d61f23cf..15d6f4194 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-16.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return function() {};
-}
+ function callbackfn(val, idx, obj) {
+ return function () { };
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js
index e897b21bc..4fa7e5e1e 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-17.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Array(10);
-}
+ function callbackfn(val, idx, obj) {
+ return new Array(10);
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js
index 71f79ca9e..46dad6dd0 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-18.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new String();
-}
+ function callbackfn(val, idx, obj) {
+ return new String();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js
index 0570144e9..bd35cfb69 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-19.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Boolean();
-}
+ function callbackfn(val, idx, obj) {
+ return new Boolean();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js
index 892a96c6b..b0681bb10 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-2.js
@@ -7,19 +7,16 @@ es5id: 15.4.4.20-9-c-iii-2
description: Array.prototype.filter - return value of callbackfn is undefined
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, o) {
- accessed = true;
- return undefined;
-}
+ function callbackfn(val, idx, o) {
+ accessed = true;
+ return undefined;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js
index c5409a87e..8f3f5e55f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-20.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Number();
-}
+ function callbackfn(val, idx, obj) {
+ return new Number();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js
index 80c3876c6..5d91b294f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-21.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return Math;
-}
+ function callbackfn(val, idx, obj) {
+ return Math;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js
index b9e29f24b..7825fe47f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-22.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Date();
-}
+ function callbackfn(val, idx, obj) {
+ return new Date();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js
index 69b2c2c72..7fca3c93d 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-23.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new RegExp();
-}
+ function callbackfn(val, idx, obj) {
+ return new RegExp();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js
index afd5e2234..8f0a030c3 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-24.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return JSON;
-}
+ function callbackfn(val, idx, obj) {
+ return JSON;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js
index 279fb2a4b..57be04e13 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-25.js
@@ -9,11 +9,11 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new EvalError();
-}
+ function callbackfn(val, idx, obj) {
+ return new EvalError();
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js
index 25ec2c9fe..332a4c3a3 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-26.js
@@ -9,11 +9,11 @@ description: >
Arguments object
---*/
-function callbackfn(val, idx, obj) {
- return arguments;
-}
+ function callbackfn(val, idx, obj) {
+ return arguments;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js
index 7d02e8a47..a8d86ae22 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-28.js
@@ -10,12 +10,11 @@ description: >
---*/
var global = this;
+ function callbackfn(val, idx, obj) {
+ return global;
+ }
-function callbackfn(val, idx, obj) {
- return global;
-}
-
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js
index 4184c13cf..a16c1a2dd 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-29.js
@@ -9,20 +9,16 @@ description: >
Array
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 8,
- length: 20
-};
+ var obj = { 0: 11, 1: 8, length: 20 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.notSameValue(newArr[0], 8, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js
index f5d032d1c..8c3fa9315 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-3.js
@@ -7,19 +7,16 @@ es5id: 15.4.4.20-9-c-iii-3
description: Array.prototype.filter - return value of callbackfn is null
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return null;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return null;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js
index e21b710d6..603c07567 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-30.js
@@ -9,11 +9,11 @@ description: >
callbackfn is treated as true value
---*/
-function callbackfn(val, idx, obj) {
- return new Boolean(false);
-}
+ function callbackfn(val, idx, obj) {
+ return new Boolean(false);
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js
index 400819dc7..957e1b506 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-4.js
@@ -9,19 +9,16 @@ description: >
(value is false)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return false;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js
index d33c906f2..3b3959c4f 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-5.js
@@ -9,16 +9,13 @@ description: >
(value is true)
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-var newArr = Array.prototype.filter.call(obj, callbackfn);
+ var newArr = Array.prototype.filter.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js
index 8cfdbcbfd..59e225bab 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-6.js
@@ -9,14 +9,14 @@ description: >
(value is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 0;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js
index 766eb4034..8b1efafcd 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-7.js
@@ -9,14 +9,14 @@ description: >
(value is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return +0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return +0;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js
index ae10c8998..3711ff9ef 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-8.js
@@ -9,14 +9,14 @@ description: >
(value is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return -0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return -0;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js
index c9f2d5772..33bd28e86 100644
--- a/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js
+++ b/test/built-ins/Array/prototype/filter/15.4.4.20-9-c-iii-9.js
@@ -9,11 +9,11 @@ description: >
(value is positive number)
---*/
-function callbackfn(val, idx, obj) {
- return 5;
-}
+ function callbackfn(val, idx, obj) {
+ return 5;
+ }
-var newArr = [11].filter(callbackfn);
+ var newArr = [11].filter(callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
assert.sameValue(newArr[0], 11, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/filter/create-ctor-non-object.js b/test/built-ins/Array/prototype/filter/create-ctor-non-object.js
index e4f50c1cf..988fed039 100644
--- a/test/built-ins/Array/prototype/filter/create-ctor-non-object.js
+++ b/test/built-ins/Array/prototype/filter/create-ctor-non-object.js
@@ -20,9 +20,7 @@ info: |
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 0;
-};
+var cb = function() { callCount += 0; };
a.constructor = null;
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js b/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js
index 8dec316a7..a766e6896 100644
--- a/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js
+++ b/test/built-ins/Array/prototype/filter/create-ctor-poisoned.js
@@ -17,9 +17,7 @@ info: |
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
Object.defineProperty(a, 'constructor', {
get: function() {
diff --git a/test/built-ins/Array/prototype/filter/create-non-array.js b/test/built-ins/Array/prototype/filter/create-non-array.js
index 34c2a56a0..32ef7736f 100644
--- a/test/built-ins/Array/prototype/filter/create-non-array.js
+++ b/test/built-ins/Array/prototype/filter/create-non-array.js
@@ -16,9 +16,7 @@ info: |
4. If isArray is false, return ? ArrayCreate(length).
---*/
-var obj = {
- length: 0
-};
+var obj = { length: 0 };
var callCount = 0;
var result;
Object.defineProperty(obj, 'constructor', {
diff --git a/test/built-ins/Array/prototype/filter/create-revoked-proxy.js b/test/built-ins/Array/prototype/filter/create-revoked-proxy.js
index 3bdee5cd6..aecf766f9 100644
--- a/test/built-ins/Array/prototype/filter/create-revoked-proxy.js
+++ b/test/built-ins/Array/prototype/filter/create-revoked-proxy.js
@@ -26,9 +26,7 @@ features: [Proxy]
var o = Proxy.revocable([], {});
var ctorCount = 0;
var cbCount = 0;
-var cb = function() {
- cbCount += 1;
-};
+var cb = function() { cbCount += 1; };
Object.defineProperty(o.proxy, 'constructor', {
get: function() {
diff --git a/test/built-ins/Array/prototype/filter/create-species-abrupt.js b/test/built-ins/Array/prototype/filter/create-species-abrupt.js
index 4c461dd30..42a4f2eda 100644
--- a/test/built-ins/Array/prototype/filter/create-species-abrupt.js
+++ b/test/built-ins/Array/prototype/filter/create-species-abrupt.js
@@ -26,9 +26,7 @@ var Ctor = function() {
throw new Test262Error();
};
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
var a = [];
a.constructor = {};
a.constructor[Symbol.species] = Ctor;
diff --git a/test/built-ins/Array/prototype/filter/create-species-non-ctor.js b/test/built-ins/Array/prototype/filter/create-species-non-ctor.js
index 890bf4d52..cf5fba2ce 100644
--- a/test/built-ins/Array/prototype/filter/create-species-non-ctor.js
+++ b/test/built-ins/Array/prototype/filter/create-species-non-ctor.js
@@ -25,9 +25,7 @@ features: [Symbol.species]
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
a.constructor = {};
a.constructor[Symbol.species] = parseInt;
diff --git a/test/built-ins/Array/prototype/filter/create-species-poisoned.js b/test/built-ins/Array/prototype/filter/create-species-poisoned.js
index 947e8f870..9edd338af 100644
--- a/test/built-ins/Array/prototype/filter/create-species-poisoned.js
+++ b/test/built-ins/Array/prototype/filter/create-species-poisoned.js
@@ -21,9 +21,7 @@ features: [Symbol.species]
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
a.constructor = {};
Object.defineProperty(a.constructor, Symbol.species, {
diff --git a/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js b/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js
index 16afbdf35..073201a27 100644
--- a/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js
+++ b/test/built-ins/Array/prototype/find/return-found-value-predicate-result-is-true.js
@@ -38,27 +38,17 @@ result = arr.find(function(val) {
assert.sameValue(called, 3, 'predicate was called three times');
assert.sameValue(result, 'Bike');
-result = arr.find(function(val) {
- return 'string';
-});
+result = arr.find(function(val) { return 'string'; });
assert.sameValue(result, 'Shoes', 'coerced string');
-result = arr.find(function(val) {
- return {};
-});
+result = arr.find(function(val) { return {}; });
assert.sameValue(result, 'Shoes', 'coerced object');
-result = arr.find(function(val) {
- return Symbol('');
-});
+result = arr.find(function(val) { return Symbol(''); });
assert.sameValue(result, 'Shoes', 'coerced Symbol');
-result = arr.find(function(val) {
- return 1;
-});
+result = arr.find(function(val) { return 1; });
assert.sameValue(result, 'Shoes', 'coerced number');
-result = arr.find(function(val) {
- return -1;
-});
+result = arr.find(function(val) { return -1; });
assert.sameValue(result, 'Shoes', 'coerced negative number');
diff --git a/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js b/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js
index 0eb576508..65d471bac 100644
--- a/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js
+++ b/test/built-ins/Array/prototype/find/return-undefined-if-predicate-returns-false-value.js
@@ -28,27 +28,17 @@ var result = arr.find(function(val) {
assert.sameValue(called, 3, 'predicate was called three times');
assert.sameValue(result, undefined);
-result = arr.find(function(val) {
- return '';
-});
+result = arr.find(function(val) { return ''; });
assert.sameValue(result, undefined, 'coerced string');
-result = arr.find(function(val) {
- return undefined;
-});
+result = arr.find(function(val) { return undefined; });
assert.sameValue(result, undefined, 'coerced undefined');
-result = arr.find(function(val) {
- return null;
-});
+result = arr.find(function(val) { return null; });
assert.sameValue(result, undefined, 'coerced null');
-result = arr.find(function(val) {
- return 0;
-});
+result = arr.find(function(val) { return 0; });
assert.sameValue(result, undefined, 'coerced 0');
-result = arr.find(function(val) {
- return NaN;
-});
+result = arr.find(function(val) { return NaN; });
assert.sameValue(result, undefined, 'coerced NaN');
diff --git a/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js b/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js
index bddf1e3e4..f57d47aeb 100644
--- a/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js
+++ b/test/built-ins/Array/prototype/findIndex/return-index-predicate-result-is-true.js
@@ -38,27 +38,17 @@ result = arr.findIndex(function(val) {
assert.sameValue(called, 3, 'predicate was called three times');
assert.sameValue(result, 2);
-result = arr.findIndex(function(val) {
- return 'string';
-});
+result = arr.findIndex(function(val) { return 'string'; });
assert.sameValue(result, 0, 'coerced string');
-result = arr.findIndex(function(val) {
- return {};
-});
+result = arr.findIndex(function(val) { return {}; });
assert.sameValue(result, 0, 'coerced object');
-result = arr.findIndex(function(val) {
- return Symbol('');
-});
+result = arr.findIndex(function(val) { return Symbol(''); });
assert.sameValue(result, 0, 'coerced Symbol');
-result = arr.findIndex(function(val) {
- return 1;
-});
+result = arr.findIndex(function(val) { return 1; });
assert.sameValue(result, 0, 'coerced number');
-result = arr.findIndex(function(val) {
- return -1;
-});
+result = arr.findIndex(function(val) { return -1; });
assert.sameValue(result, 0, 'coerced negative number');
diff --git a/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js b/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js
index b1e6eb76b..f5348ea59 100644
--- a/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js
+++ b/test/built-ins/Array/prototype/findIndex/return-negative-one-if-predicate-returns-false-value.js
@@ -28,27 +28,17 @@ var result = arr.findIndex(function(val) {
assert.sameValue(called, 3, 'predicate was called three times');
assert.sameValue(result, -1);
-result = arr.findIndex(function(val) {
- return '';
-});
+result = arr.findIndex(function(val) { return ''; });
assert.sameValue(result, -1, 'coerced string');
-result = arr.findIndex(function(val) {
- return undefined;
-});
+result = arr.findIndex(function(val) { return undefined; });
assert.sameValue(result, -1, 'coerced undefined');
-result = arr.findIndex(function(val) {
- return null;
-});
+result = arr.findIndex(function(val) { return null; });
assert.sameValue(result, -1, 'coerced null');
-result = arr.findIndex(function(val) {
- return 0;
-});
+result = arr.findIndex(function(val) { return 0; });
assert.sameValue(result, -1, 'coerced 0');
-result = arr.findIndex(function(val) {
- return NaN;
-});
+result = arr.findIndex(function(val) { return NaN; });
assert.sameValue(result, -1, 'coerced NaN');
diff --git a/test/built-ins/Array/prototype/flatMap/bound-function-argument.js b/test/built-ins/Array/prototype/flatMap/bound-function-argument.js
index daa314115..95f5aeffe 100644
--- a/test/built-ins/Array/prototype/flatMap/bound-function-argument.js
+++ b/test/built-ins/Array/prototype/flatMap/bound-function-argument.js
@@ -9,6 +9,4 @@ features: [Array.prototype.flatMap]
---*/
var a = [0, 0];
-assert.compareArray(a.flatMap(function() {
- return this;
-}.bind([1, 2])), [1, 2, 1, 2]);
+assert.compareArray(a.flatMap(function(){ return this; }.bind([1, 2])), [1, 2, 1, 2]);
diff --git a/test/built-ins/Array/prototype/flatMap/depth-always-one.js b/test/built-ins/Array/prototype/flatMap/depth-always-one.js
index 4f5f672b4..851a9a744 100644
--- a/test/built-ins/Array/prototype/flatMap/depth-always-one.js
+++ b/test/built-ins/Array/prototype/flatMap/depth-always-one.js
@@ -13,9 +13,7 @@ assert.compareArray([1, 2].flatMap(function(e) {
}), [1, 2, 2, 4], 'array depth is 1');
var result = [1, 2, 3].flatMap(function(ele) {
- return [
- [ele * 2]
- ];
+ return [[ele * 2]];
});
assert.sameValue(result.length, 3, 'array depth is more than 1 - length');
assert.compareArray(result[0], [2], 'array depth is more than 1 - 1st element');
diff --git a/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js b/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js
index ab0f8ca86..6d47d0233 100644
--- a/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js
+++ b/test/built-ins/Array/prototype/flatMap/non-callable-argument-throws.js
@@ -7,6 +7,6 @@ description: >
features: [Array.prototype.flatMap]
---*/
-assert.throws(TypeError, function() {
+assert.throws(TypeError, function () {
[].flatMap({});
}, 'non callable argument');
diff --git a/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js b/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js
index 65767d2ce..21e44b681 100644
--- a/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js
+++ b/test/built-ins/Array/prototype/flatMap/non-object-ctor-throws.js
@@ -31,3 +31,4 @@ a.constructor = true;
assert.throws(TypeError, function() {
a.flatMap();
}, 'boolean value');
+
diff --git a/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js b/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js
index dcfe81aaf..5a4e966e2 100644
--- a/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js
+++ b/test/built-ins/Array/prototype/flatMap/null-undefined-input-throws.js
@@ -18,3 +18,4 @@ assert.throws(TypeError, function() {
assert.throws(TypeError, function() {
[].flatMap.call(void 0);
}, 'undefined');
+
diff --git a/test/built-ins/Array/prototype/flatMap/thisArg-argument.js b/test/built-ins/Array/prototype/flatMap/thisArg-argument.js
index 34db60abd..95b95ca7a 100644
--- a/test/built-ins/Array/prototype/flatMap/thisArg-argument.js
+++ b/test/built-ins/Array/prototype/flatMap/thisArg-argument.js
@@ -12,21 +12,9 @@ features: [Array.prototype.flatMap]
var a = {};
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, "TestString"), ["TestString"]));
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, 1), [1]));
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, null), [null]));
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, true), [true]));
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, a), [a]));
-assert(compareArray([1].flatMap(function() {
- return [this];
-}, void 0), [undefined]));
+assert(compareArray([1].flatMap(function() { return [this]; }, "TestString"), ["TestString"]));
+assert(compareArray([1].flatMap(function() { return [this]; }, 1), [1]));
+assert(compareArray([1].flatMap(function() { return [this]; }, null), [null]));
+assert(compareArray([1].flatMap(function() { return [this]; }, true), [true]));
+assert(compareArray([1].flatMap(function() { return [this]; }, a), [a]));
+assert(compareArray([1].flatMap(function() { return [this]; }, void 0), [undefined]));
diff --git a/test/built-ins/Array/prototype/flatten/bound-function-call.js b/test/built-ins/Array/prototype/flatten/bound-function-call.js
index fd35f0975..ce4153b87 100644
--- a/test/built-ins/Array/prototype/flatten/bound-function-call.js
+++ b/test/built-ins/Array/prototype/flatten/bound-function-call.js
@@ -8,10 +8,7 @@ includes: [compareArray.js]
features: [Array.prototype.flatten]
---*/
-var a = [
- [0],
- [1]
-];
+var a = [[0],[1]];
var actual = [].flatten.bind(a)();
assert.compareArray(actual, [0, 1], 'bound flatten');
diff --git a/test/built-ins/Array/prototype/flatten/empty-array-elements.js b/test/built-ins/Array/prototype/flatten/empty-array-elements.js
index 379b1e48c..cbf2ae4b0 100644
--- a/test/built-ins/Array/prototype/flatten/empty-array-elements.js
+++ b/test/built-ins/Array/prototype/flatten/empty-array-elements.js
@@ -10,15 +10,6 @@ features: [Array.prototype.flatten]
var a = {};
assert.compareArray([].flatten(), []);
-assert.compareArray([
- [],
- []
-].flatten(), []);
-assert.compareArray([
- [],
- [1]
-].flatten(), [1]);
-assert.compareArray([
- [],
- [1, a]
-].flatten(), [1, a]);
+assert.compareArray([[], []].flatten(), []);
+assert.compareArray([[], [1]].flatten(), [1]);
+assert.compareArray([[], [1, a]].flatten(), [1, a]);
diff --git a/test/built-ins/Array/prototype/flatten/empty-object-elements.js b/test/built-ins/Array/prototype/flatten/empty-object-elements.js
index e1fcb18d3..356cab660 100644
--- a/test/built-ins/Array/prototype/flatten/empty-object-elements.js
+++ b/test/built-ins/Array/prototype/flatten/empty-object-elements.js
@@ -8,15 +8,9 @@ includes: [compareArray.js]
features: [Array.prototype.flatten]
---*/
-var a = {},
- b = {};
+var a = {}, b = {};
assert.compareArray([a].flatten(), [a]);
assert.compareArray([a, [b]].flatten(), [a, b]);
-assert.compareArray([
- [a], b
-].flatten(), [a, b]);
-assert.compareArray([
- [a],
- [b]
-].flatten(), [a, b]);
+assert.compareArray([[a], b].flatten(), [a, b]);
+assert.compareArray([[a], [b]].flatten(), [a, b]);
diff --git a/test/built-ins/Array/prototype/flatten/name.js b/test/built-ins/Array/prototype/flatten/name.js
index 6d89ae6b7..365c7e11c 100644
--- a/test/built-ins/Array/prototype/flatten/name.js
+++ b/test/built-ins/Array/prototype/flatten/name.js
@@ -18,3 +18,4 @@ assert.sameValue(
verifyNotEnumerable(Array.prototype.flatten, 'name');
verifyNotWritable(Array.prototype.flatten, 'name');
verifyConfigurable(Array.prototype.flatten, 'name');
+
diff --git a/test/built-ins/Array/prototype/flatten/null-undefined-elements.js b/test/built-ins/Array/prototype/flatten/null-undefined-elements.js
index 8211fdcc2..ef8fb3a53 100644
--- a/test/built-ins/Array/prototype/flatten/null-undefined-elements.js
+++ b/test/built-ins/Array/prototype/flatten/null-undefined-elements.js
@@ -11,10 +11,7 @@ features: [Array.prototype.flatten]
var a = [void 0];
assert(compareArray([1, null, void 0].flatten(), [1, null, undefined]));
-assert(compareArray([1, [null, void 0]].flatten(), [1, null, undefined]));
-assert(compareArray([
- [null, void 0],
- [null, void 0]
-].flatten(), [null, undefined, null, undefined]));
-assert(compareArray([1, [null, a]].flatten(1), [1, null, a]));
-assert(compareArray([1, [null, a]].flatten(2), [1, null, undefined]));
+assert(compareArray([1,[null, void 0]].flatten(), [1, null, undefined]));
+assert(compareArray([[null, void 0], [null, void 0]].flatten(), [null, undefined, null, undefined]));
+assert(compareArray([1,[null, a]].flatten(1), [1, null, a]));
+assert(compareArray([1,[null, a]].flatten(2), [1, null, undefined]));
diff --git a/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js b/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js
index d3a5a59ad..3e711223f 100644
--- a/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js
+++ b/test/built-ins/Array/prototype/flatten/null-undefined-input-throws.js
@@ -18,3 +18,4 @@ assert.throws(TypeError, function() {
assert.throws(TypeError, function() {
[].flatten.call(void 0);
}, 'undefined');
+
diff --git a/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js b/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js
index af58ce6b7..9bcf98ae0 100644
--- a/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js
+++ b/test/built-ins/Array/prototype/flatten/symbol-object-create-null-depth-throws.js
@@ -14,3 +14,4 @@ assert.throws(TypeError, function() {
assert.throws(TypeError, function() {
[].flatten(Object.create(null));
}, 'object create null');
+
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js
index 8e8bb7003..1f7f8df82 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.forEach applied to undefined
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(undefined); // TypeError is thrown if value is undefined
+ Array.prototype.forEach.call(undefined); // TypeError is thrown if value is undefined
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js
index 7ba92b973..e751161d6 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-10.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.18-1-10
description: Array.prototype.forEach applied to the Math object
---*/
-var result = false;
+ var result = false;
-function callbackfn(val, idx, obj) {
- result = ('[object Math]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(val, idx, obj) {
+ result = ('[object Math]' === Object.prototype.toString.call(obj));
+ }
-Math.length = 1;
-Math[0] = 1;
-Array.prototype.forEach.call(Math, callbackfn);
+ Math.length = 1;
+ Math[0] = 1;
+ Array.prototype.forEach.call(Math, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js
index 8d30c99da..2ec98784d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-11.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.18-1-11
description: Array.prototype.forEach applied to Date object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Date;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Date;
-}
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
-var obj = new Date();
-obj.length = 1;
-obj[0] = 1;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js
index c360a8771..5e54175c6 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-12.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.18-1-12
description: Array.prototype.forEach applied to RegExp object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof RegExp;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof RegExp;
-}
+ var obj = new RegExp();
+ obj.length = 1;
+ obj[0] = 1;
-var obj = new RegExp();
-obj.length = 1;
-obj[0] = 1;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js
index 9759f019a..70fc43629 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-13.js
@@ -7,14 +7,13 @@ es5id: 15.4.4.18-1-13
description: Array.prototype.forEach applied to the JSON object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = ('[object JSON]' === Object.prototype.toString.call(obj));
+ }
-function callbackfn(val, idx, obj) {
- result = ('[object JSON]' === Object.prototype.toString.call(obj));
-}
-
-JSON.length = 1;
-JSON[0] = 1;
-Array.prototype.forEach.call(JSON, callbackfn);
+ JSON.length = 1;
+ JSON[0] = 1;
+ Array.prototype.forEach.call(JSON, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js
index e6c5caa10..b7a59755a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-14.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.18-1-14
description: Array.prototype.forEach applied to Error object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Error;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Error;
-}
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js
index 2ea3f1e44..6b9762524 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-15.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.18-1-15
description: Array.prototype.forEach applied to the Arguments object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = ('[object Arguments]' === Object.prototype.toString.call(obj));
+ }
-function callbackfn(val, idx, obj) {
- result = ('[object Arguments]' === Object.prototype.toString.call(obj));
-}
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
-var obj = (function() {
- return arguments;
-}("a", "b"));
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js
index bce24cc3f..49ee29fb4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.forEach applied to null
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(null); // TypeError is thrown if value is null
+ Array.prototype.forEach.call(null); // TypeError is thrown if value is null
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js
index 6434a1a5d..fde036022 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-3.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.18-1-3
description: Array.prototype.forEach applied to boolean primitive
---*/
-var result = false;
+ var result = false;
-function callbackfn(val, idx, obj) {
- result = obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Boolean;
+ }
-Boolean.prototype[0] = true;
-Boolean.prototype.length = 1;
+ Boolean.prototype[0] = true;
+ Boolean.prototype.length = 1;
-Array.prototype.forEach.call(false, callbackfn);
+ Array.prototype.forEach.call(false, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js
index 87304f79b..899d60a7d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-4.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.18-1-4
description: Array.prototype.forEach applied to Boolean object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Boolean;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Boolean;
-}
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js
index 7afae81ba..dbfdba7f9 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-5.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.18-1-5
description: Array.prototype.forEach applied to number primitive
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Number;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Number;
-}
+ Number.prototype[0] = 1;
+ Number.prototype.length = 1;
-Number.prototype[0] = 1;
-Number.prototype.length = 1;
-
-Array.prototype.forEach.call(2.5, callbackfn);
+ Array.prototype.forEach.call(2.5, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js
index 8e33905df..a4417bace 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-6.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.18-1-6
description: Array.prototype.forEach applied to Number object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Number;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Number;
-}
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js
index 7160b1c04..c85736e35 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-7.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-1-7
description: Array.prototype.forEach applied to string primitive
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof String;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof String;
-}
-
-Array.prototype.forEach.call("abc", callbackfn);
+ Array.prototype.forEach.call("abc", callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js
index 3f2027f77..6aa6ade20 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-8.js
@@ -7,13 +7,12 @@ es5id: 15.4.4.18-1-8
description: Array.prototype.forEach applied to String object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof String;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof String;
-}
-
-var obj = new String("abc");
-Array.prototype.forEach.call(obj, callbackfn);
+ var obj = new String("abc");
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js
index 38cd91443..24024487f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-1-9.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.18-1-9
description: Array.prototype.forEach applied to Function object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = obj instanceof Function;
+ }
-function callbackfn(val, idx, obj) {
- result = obj instanceof Function;
-}
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js
index f6d82711c..a8cacea2b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-1.js
@@ -9,19 +9,18 @@ description: >
Array-like object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+ };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js
index a4b5e78bb..b62dda53c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-10.js
@@ -9,29 +9,28 @@ description: >
an inherited accessor property
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var proto = {};
-var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js
index e9e36719e..c28736d45 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-11.js
@@ -9,21 +9,20 @@ description: >
an own accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js
index 6bb1b8f12..c8649b335 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-12.js
@@ -10,28 +10,24 @@ description: >
property on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var obj = { 0: 12, 1: 11 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 12,
- 1: 11
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js
index 9dac1f4a2..200cd401c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-13.js
@@ -9,25 +9,25 @@ description: >
'length' is inherited accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js
index 297cdf482..a78c2fbdc 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-14.js
@@ -9,17 +9,14 @@ description: >
'length' property doesn't exist
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js
index 9f2cd87c7..57e36efaa 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-17.js
@@ -9,16 +9,15 @@ description: >
implements its own property get method
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
-
-var func = function(a, b) {
- arguments[2] = 9;
- Array.prototype.forEach.call(arguments, callbackfn);
- return result;
-};
+ var func = function (a, b) {
+ arguments[2] = 9;
+ Array.prototype.forEach.call(arguments, callbackfn);
+ return result;
+ };
assert(func(12, 11), 'func(12, 11) !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js
index 717904329..8089c6836 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-18.js
@@ -9,14 +9,13 @@ description: >
its own property get method
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 3);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 3);
-}
+ var str = new String("012");
-var str = new String("012");
-
-Array.prototype.forEach.call(str, callbackfn);
+ Array.prototype.forEach.call(str, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js
index 200ad5818..da202f158 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-19.js
@@ -9,19 +9,18 @@ description: >
implements its own property get method
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 12;
+ fun[1] = 11;
+ fun[2] = 9;
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 12;
-fun[1] = 11;
-fun[2] = 9;
-
-Array.prototype.forEach.call(fun, callbackfn);
+ Array.prototype.forEach.call(fun, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js
index 4f3c8f8c3..1f3da7255 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-2.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-2-2
description: Array.prototype.forEach - 'length' is own data property on an Array
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
-
-[12, 11].forEach(callbackfn);
+ [12, 11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js
index 05c761a4f..3a70a3fa1 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-3.js
@@ -9,25 +9,22 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var proto = { length: 3 };
-var proto = {
- length: 3
-};
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var child = new Con();
-child.length = 2;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js
index 9d5224333..4a5be1425 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-4.js
@@ -9,15 +9,14 @@ description: >
overrides an inherited data property on an Array
---*/
-var result = false;
-var arrProtoLen;
+ var result = false;
+ var arrProtoLen;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
-
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
-[12, 11].forEach(callbackfn);
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
+ [12, 11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js
index 21fd3b12c..c261643e5 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-5.js
@@ -9,33 +9,32 @@ description: >
an own data property that overrides an inherited accessor property
---*/
-var result = false;
-
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js
index 23627c89a..e0ee2a2ed 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-6.js
@@ -9,24 +9,21 @@ description: >
an inherited data property
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var proto = { length: 2 };
-var proto = {
- length: 2
-};
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js
index 2fb7ebdc3..e1fc969f4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-7.js
@@ -9,25 +9,24 @@ description: >
an own accessor property
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var obj = {};
-var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ obj[0] = 12;
+ obj[1] = 11;
+ obj[2] = 9;
-obj[0] = 12;
-obj[1] = 11;
-obj[2] = 9;
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js
index ee2588cd2..e1da52282 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-8.js
@@ -9,32 +9,29 @@ description: >
an own accessor property that overrides an inherited data property
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var proto = { length: 3 };
-var proto = {
- length: 3
-};
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
-var child = new Con();
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js
index 98f607595..0b8017b05 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-2-9.js
@@ -10,37 +10,36 @@ description: >
property
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (obj.length === 2);
+ }
-function callbackfn(val, idx, obj) {
- result = (obj.length === 2);
-}
+ var proto = {};
-var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
-var child = new Con();
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js
index 61853f5ca..29126acb2 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-1.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.18-3-1
description: Array.prototype.forEach - value of 'length' is undefined
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 0,
- 1: 1,
- length: undefined
-};
+ var obj = { 0: 0, 1: 1, length: undefined };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js
index b82073f6a..1b5fdbcfc 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-10.js
@@ -9,17 +9,14 @@ description: >
NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: NaN
-};
+ var obj = { 0: 9, length: NaN };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js
index cc8e8892c..5244023de 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-11.js
@@ -9,18 +9,14 @@ description: >
positive number
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2"
-};
+ var obj = { 1: 11, 2: 9, length: "2" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js
index f08f896a2..f50bbdc55 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-12.js
@@ -9,18 +9,14 @@ description: >
negative number
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "-4294967294"
-};
+ var obj = { 1: 11, 2: 9, length: "-4294967294" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js
index a5816b0ce..80e34f716 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-13.js
@@ -9,17 +9,13 @@ description: >
decimal number
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
-var obj = {
- 1: 11,
- 2: 9,
- length: "2.5"
-};
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
+ var obj = { 1: 11, 2: 9, length: "2.5" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js
index a3583896a..482c69d42 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-14.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.18-3-14
description: Array.prototype.forEach - 'length' is a string containing -Infinity
---*/
-var accessed2 = false;
+ var accessed2 = false;
-function callbackfn2(val, idx, obj) {
- accessed2 = true;
-}
+ function callbackfn2(val, idx, obj) {
+ accessed2 = true;
+ }
-var obj2 = {
- 0: 9,
- length: "-Infinity"
-};
+ var obj2 = { 0: 9, length: "-Infinity" };
-Array.prototype.forEach.call(obj2, callbackfn2);
+ Array.prototype.forEach.call(obj2, callbackfn2);
assert.sameValue(accessed2, false, 'accessed2');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js
index 2fb4ad6e9..09b71e391 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-15.js
@@ -9,18 +9,14 @@ description: >
exponential number
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2E0"
-};
+ var obj = { 1: 11, 2: 9, length: "2E0" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js
index 439583682..e6f77c16a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-16.js
@@ -9,18 +9,14 @@ description: >
number
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0x0002"
-};
+ var obj = { 1: 11, 2: 9, length: "0x0002" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js
index acf6a235d..e8ca4bd50 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-17.js
@@ -9,18 +9,14 @@ description: >
with leading zeros
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0002.00"
-};
+ var obj = { 1: 11, 2: 9, length: "0002.00" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js
index 070a95aa4..7b47f80ba 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-18.js
@@ -9,17 +9,14 @@ description: >
convert to a number
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: "asdf!_"
-};
+ var obj = { 0: 9, length: "asdf!_" };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js
index 1c162f9f2..953f8ef8b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-19.js
@@ -9,22 +9,22 @@ description: >
an own toString method.
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js
index 5dfb9e782..03e951271 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-2.js
@@ -9,18 +9,13 @@ description: >
true)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ var obj = { 0: 11, 1: 9, length: true };
-var obj = {
- 0: 11,
- 1: 9,
- length: true
-};
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js
index 64304dc3f..6a1fed479 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-20.js
@@ -9,22 +9,22 @@ description: >
an own valueOf method.
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js
index 94681a140..e2be7cdb6 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-21.js
@@ -10,30 +10,30 @@ description: >
returns a string
---*/
-var testResult = false;
-var firstStepOccured = false;
-var secondStepOccured = false;
+ var testResult = false;
+ var firstStepOccured = false;
+ var secondStepOccured = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- firstStepOccured = true;
- return {};
- },
- toString: function() {
- secondStepOccured = true;
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ firstStepOccured = true;
+ return {};
+ },
+ toString: function () {
+ secondStepOccured = true;
+ return '2';
+ }
+ }
+ };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(firstStepOccured, 'firstStepOccured !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js
index 1dada0650..6298b50ef 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-22.js
@@ -10,30 +10,30 @@ description: >
primitive values
---*/
-var accessed = false;
-var firstStepOccured = false;
-var secondStepOccured = false;
+ var accessed = false;
+ var firstStepOccured = false;
+ var secondStepOccured = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 1: 11,
- 2: 12,
+ var obj = {
+ 1: 11,
+ 2: 12,
- length: {
- valueOf: function() {
- firstStepOccured = true;
- return {};
- },
- toString: function() {
- secondStepOccured = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ firstStepOccured = true;
+ return {};
+ },
+ toString: function () {
+ secondStepOccured = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js
index d8cc31d6c..cf7cb7b30 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-23.js
@@ -10,38 +10,38 @@ description: >
methods
---*/
-var testResult = false;
-var valueOfAccessed = false;
-var toStringAccessed = false;
-
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
-
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
-
-var obj = {
- 1: 11,
- 2: 9,
- length: child
-};
-
-Array.prototype.forEach.call(obj, callbackfn);
+ var testResult = false;
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
+
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
+
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: child
+ };
+
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js
index fb2da44e1..770f80e02 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-24.js
@@ -9,18 +9,18 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2.685
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: 2.685
+ };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js
index c9e1809c7..e855f28d6 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-25.js
@@ -9,18 +9,18 @@ description: >
non-integer
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- testResult = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294.5
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+ };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js
index 467960654..a98ea6176 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-3.js
@@ -9,18 +9,14 @@ description: >
0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 1,
- 1: 1,
- length: 0
-};
+ var obj = { 0: 1, 1: 1, length: 0 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js
index 1ac3e8c0b..dc457c42a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-4.js
@@ -9,17 +9,14 @@ description: >
+0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- length: +0
-};
+ var obj = { 0: 11, length: +0 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js
index d8caecc2e..50348c00a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-5.js
@@ -9,17 +9,14 @@ description: >
-0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- length: -0
-};
+ var obj = { 0: 11, length: -0 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js
index 1197b4816..41701e6e5 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-6.js
@@ -9,18 +9,14 @@ description: >
positive)
---*/
-var testResult1 = false;
+ var testResult1 = false;
-function callbackfn(val, idx, obj) {
- testResult1 = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult1 = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = { 1: 11, 2: 9, length: 2 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult1, 'testResult1 !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js
index f3b859b9b..05ffaedf4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-7.js
@@ -9,18 +9,14 @@ description: >
negative)
---*/
-var testResult1 = false;
+ var testResult1 = false;
-function callbackfn(val, idx, obj) {
- testResult1 = (val > 10);
-}
+ function callbackfn(val, idx, obj) {
+ testResult1 = (val > 10);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294
-};
+ var obj = { 1: 11, 2: 9, length: -4294967294 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(testResult1, false, 'testResult1');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js
index 3d3468809..300fd705d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-3-9.js
@@ -9,17 +9,14 @@ description: >
-Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: -Infinity
-};
+ var obj = { 0: 9, length: -Infinity };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js
index 81f4d15b6..0c1e6e517 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-1
description: Array.prototype.forEach throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach();
+ arr.forEach();
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js
index 0dad22c77..d9ef1c808 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-10.js
@@ -9,18 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.forEach.call(obj, undefined);
+ Array.prototype.forEach.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js
index 0a9bca012..2ae6d3461 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-11.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.forEach.call(obj, undefined);
+ Array.prototype.forEach.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js
index 8bc18df1e..69581f68e 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-12.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-4-12
description: Array.prototype.forEach - 'callbackfn' is a function
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
-
-[11, 9].forEach(callbackfn);
+ [11, 9].forEach(callbackfn);
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js
index 09b8a247d..1d94ede8a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-15.js
@@ -9,29 +9,27 @@ description: >
as passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(obj);
+ Array.prototype.forEach.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js
index a26b2ea39..b3f465b79 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.forEach(foo);
+ arr.forEach(foo);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js
index 81934e7ea..b04887033 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-3
description: Array.prototype.forEach throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach(null);
+ arr.forEach(null);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js
index 399cdbf5b..b9a1d8952 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-4
description: Array.prototype.forEach throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach(true);
+ arr.forEach(true);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js
index 866d6fdda..1ffe8b094 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-5
description: Array.prototype.forEach throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach(5);
+ arr.forEach(5);
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js
index 4cf36be98..146bb7df2 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.18-4-6
description: Array.prototype.forEach throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach("abc");
+ arr.forEach("abc");
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js
index 3379dbe02..93d142b9b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-7.js
@@ -9,7 +9,7 @@ description: >
without Call internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.forEach(new Object());
+ arr.forEach(new Object());
});
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js
index 09f9862fe..9ea17000a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-8.js
@@ -9,21 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(obj, null);
+ Array.prototype.forEach.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js
index 75b0065b3..8600794dd 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-4-9.js
@@ -9,25 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.forEach.call(obj, null);
+ Array.prototype.forEach.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js
index c4b4c0df4..540b38d09 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1-s.js
@@ -8,14 +8,14 @@ description: Array.prototype.forEach - thisArg not passed to strict callbackfn
flags: [noStrict]
---*/
-var innerThisCorrect = false;
+ var innerThisCorrect = false;
-function callbackfn(val, idx, obj) {
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
-[1].forEach(callbackfn);
+ [1].forEach(callbackfn);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js
index 6dd49f78f..ae937bd6e 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-1.js
@@ -9,15 +9,14 @@ flags: [noStrict]
---*/
(function() {
- this._15_4_4_18_5_1 = false;
- var _15_4_4_18_5_1 = true;
- var result;
+ this._15_4_4_18_5_1 = false;
+ var _15_4_4_18_5_1 = true;
+ var result;
+ function callbackfn(val, idx, obj) {
+ result = this._15_4_4_18_5_1;
+ }
+ var arr = [1];
+ arr.forEach(callbackfn)
- function callbackfn(val, idx, obj) {
- result = this._15_4_4_18_5_1;
- }
- var arr = [1];
- arr.forEach(callbackfn)
-
- assert.sameValue(result, false, 'result');
+assert.sameValue(result, false, 'result');
})();
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js
index 771626914..914cfafae 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-10.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-10
description: Array.prototype.forEach - Array Object can be used as thisArg
---*/
-var result = false;
-var objArray = [];
+ var result = false;
+ var objArray = [];
-function callbackfn(val, idx, obj) {
- result = (this === objArray);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objArray);
+ }
-[11].forEach(callbackfn, objArray);
+ [11].forEach(callbackfn, objArray);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js
index 9975fe11c..0f0e203b3 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-11.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-11
description: Array.prototype.forEach - String Object can be used as thisArg
---*/
-var result = false;
-var objString = new String();
+ var result = false;
+ var objString = new String();
-function callbackfn(val, idx, obj) {
- result = (this === objString);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objString);
+ }
-[11].forEach(callbackfn, objString);
+ [11].forEach(callbackfn, objString);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js
index 4aa627ea0..76e1b9567 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-12.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-12
description: Array.prototype.forEach - Boolean Object can be used as thisArg
---*/
-var result = false;
-var objBoolean = new Boolean();
+ var result = false;
+ var objBoolean = new Boolean();
-function callbackfn(val, idx, obj) {
- result = (this === objBoolean);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objBoolean);
+ }
-[11].forEach(callbackfn, objBoolean);
+ [11].forEach(callbackfn, objBoolean);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js
index 0ca2d8c48..765776976 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-13.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-13
description: Array.prototype.forEach - Number Object can be used as thisArg
---*/
-var result = false;
-var objNumber = new Number();
+ var result = false;
+ var objNumber = new Number();
-function callbackfn(val, idx, obj) {
- result = (this === objNumber);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objNumber);
+ }
-[11].forEach(callbackfn, objNumber);
+ [11].forEach(callbackfn, objNumber);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js
index 8c1b7fcd5..903355378 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-14.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-5-14
description: Array.prototype.forEach - the Math object can be used as thisArg
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this === Math);
+ }
-function callbackfn(val, idx, obj) {
- result = (this === Math);
-}
-
-[11].forEach(callbackfn, Math);
+ [11].forEach(callbackfn, Math);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js
index 8835b6bdc..d4154fead 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-15.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-15
description: Array.prototype.forEach - Date Object can be used as thisArg
---*/
-var result = false;
-var objDate = new Date();
+ var result = false;
+ var objDate = new Date();
-function callbackfn(val, idx, obj) {
- result = (this === objDate);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objDate);
+ }
-[11].forEach(callbackfn, objDate);
+ [11].forEach(callbackfn, objDate);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js
index a0f3cb83d..67f48ac06 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-16.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-16
description: Array.prototype.forEach - RegExp Object can be used as thisArg
---*/
-var result = false;
-var objRegExp = new RegExp();
+ var result = false;
+ var objRegExp = new RegExp();
-function callbackfn(val, idx, obj) {
- result = (this === objRegExp);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objRegExp);
+ }
-[11].forEach(callbackfn, objRegExp);
+ [11].forEach(callbackfn, objRegExp);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js
index 2aea48e64..5d9ec5130 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-17.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-5-17
description: Array.prototype.forEach - the JSON object can be used as thisArg
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this === JSON);
+ }
-function callbackfn(val, idx, obj) {
- result = (this === JSON);
-}
-
-[11].forEach(callbackfn, JSON);
+ [11].forEach(callbackfn, JSON);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js
index 84480af75..237bd7b38 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-18.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-18
description: Array.prototype.forEach - Error Object can be used as thisArg
---*/
-var result = false;
-var objError = new RangeError();
+ var result = false;
+ var objError = new RangeError();
-function callbackfn(val, idx, obj) {
- result = (this === objError);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objError);
+ }
-[11].forEach(callbackfn, objError);
+ [11].forEach(callbackfn, objError);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js
index cf428f440..0ffb3591d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-19.js
@@ -9,17 +9,17 @@ description: >
thisArg
---*/
-var result = false;
-var arg;
+ var result = false;
+ var arg;
-function callbackfn(val, idx, obj) {
- result = (this === arg);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === arg);
+ }
-(function fun() {
- arg = arguments;
-}(1, 2, 3));
+ (function fun() {
+ arg = arguments;
+ }(1, 2, 3));
-[11].forEach(callbackfn, arg);
+ [11].forEach(callbackfn, arg);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js
index 7c62ee13d..194c4ed48 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-2.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.18-5-2
description: Array.prototype.forEach - thisArg is Object
---*/
-var res = false;
-var o = new Object();
-o.res = true;
-var result;
+ var res = false;
+ var o = new Object();
+ o.res = true;
+ var result;
+ function callbackfn(val, idx, obj)
+ {
+ result = this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- result = this.res;
-}
-
-var arr = [1];
-arr.forEach(callbackfn, o)
+ var arr = [1];
+ arr.forEach(callbackfn,o)
assert.sameValue(result, true, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js
index 19b8de2fa..3a3e5c962 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-21.js
@@ -8,12 +8,11 @@ description: Array.prototype.forEach - the global object can be used as thisArg
---*/
var global = this;
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this === global);
+ }
-function callbackfn(val, idx, obj) {
- result = (this === global);
-}
-
-[11].forEach(callbackfn, this);
+ [11].forEach(callbackfn, this);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js
index 22fe09f8e..ae22b88b0 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-22.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.18-5-22
description: Array.prototype.forEach - boolean primitive can be used as thisArg
---*/
-var result = false;
+ var result = false;
-function callbackfn(val, idx, obj) {
- result = (this.valueOf() === false);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this.valueOf() === false);
+ }
-[11].forEach(callbackfn, false);
+ [11].forEach(callbackfn, false);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js
index c74f302aa..5fc0674f0 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-23.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-5-23
description: Array.prototype.forEach - number primitive can be used as thisArg
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this.valueOf() === 101);
+ }
-function callbackfn(val, idx, obj) {
- result = (this.valueOf() === 101);
-}
-
-[11].forEach(callbackfn, 101);
+ [11].forEach(callbackfn, 101);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js
index fc1c4fa6f..6b774576b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-24.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-5-24
description: Array.prototype.forEach - string primitive can be used as thisArg
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this.valueOf() === "abc");
+ }
-function callbackfn(val, idx, obj) {
- result = (this.valueOf() === "abc");
-}
-
-[11].forEach(callbackfn, "abc");
+ [11].forEach(callbackfn, "abc");
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js
index af345a918..f32dd6f81 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-25.js
@@ -8,17 +8,16 @@ description: Array.prototype.forEach - thisArg not passed
flags: [noStrict]
---*/
-function innerObj() {
- this._15_4_4_18_5_25 = true;
- var _15_4_4_18_5_25 = false;
- var result;
-
- function callbackfn(val, idx, obj) {
- result = this._15_4_4_18_5_25;
- }
- var arr = [1];
- arr.forEach(callbackfn)
- this.retVal = !result;
-}
+ function innerObj() {
+ this._15_4_4_18_5_25 = true;
+ var _15_4_4_18_5_25 = false;
+ var result;
+ function callbackfn(val, idx, obj) {
+ result = this._15_4_4_18_5_25;
+ }
+ var arr = [1];
+ arr.forEach(callbackfn)
+ this.retVal = !result;
+ }
assert(new innerObj().retVal, 'new innerObj().retVal !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js
index 738c6624f..7ce819a4f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-3.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.18-5-3
description: Array.prototype.forEach - thisArg is Array
---*/
-var res = false;
-var a = new Array();
-a.res = true;
-var result;
+ var res = false;
+ var a = new Array();
+ a.res = true;
+ var result;
+ function callbackfn(val, idx, obj)
+ {
+ result = this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- result = this.res;
-}
-
-var arr = [1];
-arr.forEach(callbackfn, a)
+ var arr = [1];
+ arr.forEach(callbackfn,a)
assert.sameValue(result, true, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js
index 6a88eded2..211bafd48 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-4.js
@@ -9,18 +9,17 @@ description: >
template(prototype)
---*/
-var res = false;
-var result;
+ var res = false;
+ var result;
+ function callbackfn(val, idx, obj)
+ {
+ result = this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- result = this.res;
-}
-
-function foo() {}
-foo.prototype.res = true;
-var f = new foo();
-var arr = [1];
-arr.forEach(callbackfn, f)
+ function foo(){}
+ foo.prototype.res = true;
+ var f = new foo();
+ var arr = [1];
+ arr.forEach(callbackfn,f)
assert.sameValue(result, true, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js
index eedf65b79..3f3d7ba8c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-5.js
@@ -7,19 +7,18 @@ es5id: 15.4.4.18-5-5
description: Array.prototype.forEach - thisArg is object from object template
---*/
-var res = false;
-var result;
+ var res = false;
+ var result;
+ function callbackfn(val, idx, obj)
+ {
+ result = this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- result = this.res;
-}
+ function foo(){}
+ var f = new foo();
+ f.res = true;
-function foo() {}
-var f = new foo();
-f.res = true;
-
-var arr = [1];
-arr.forEach(callbackfn, f)
+ var arr = [1];
+ arr.forEach(callbackfn,f)
assert.sameValue(result, true, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js
index 00e62309b..bcbb7bb55 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-6.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.18-5-6
description: Array.prototype.forEach - thisArg is function
---*/
-var res = false;
-var result;
+ var res = false;
+ var result;
+ function callbackfn(val, idx, obj)
+ {
+ result = this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- result = this.res;
-}
+ function foo(){}
+ foo.res = true;
-function foo() {}
-foo.res = true;
-
-var arr = [1];
-arr.forEach(callbackfn, foo)
+ var arr = [1];
+ arr.forEach(callbackfn,foo)
assert.sameValue(result, true, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js
index c5db1a536..d75504027 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-7.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.18-5-7
description: Array.prototype.forEach - built-in functions can be used as thisArg
---*/
-var result = false;
+ var result = false;
-function callbackfn(val, idx, obj) {
- result = (this === eval);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === eval);
+ }
-[11].forEach(callbackfn, eval);
+ [11].forEach(callbackfn, eval);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js
index 9dede756a..81097bd2f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-5-9.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.18-5-9
description: Array.prototype.forEach - Function Object can be used as thisArg
---*/
-var result = false;
-var objString = function() {};
+ var result = false;
+ var objString = function () { };
-function callbackfn(val, idx, obj) {
- result = (this === objString);
-}
+ function callbackfn(val, idx, obj) {
+ result = (this === objString);
+ }
-[11].forEach(callbackfn, objString);
+ [11].forEach(callbackfn, objString);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js
index 0ee2556d6..304a95683 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-1.js
@@ -9,16 +9,15 @@ description: >
array after the call
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ arr[2] = 3;
+ arr[5] = 6;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- arr[2] = 3;
- arr[5] = 6;
-}
-
-var arr = [1, 2, , 4, 5];
-arr.forEach(callbackfn);
+ var arr = [1,2,,4,5];
+ arr.forEach(callbackfn);
assert.sameValue(callCnt, 5, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js
index 240795f06..427fee6c8 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-2.js
@@ -9,16 +9,15 @@ description: >
after the call
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ if(callCnt == 0)
+ delete arr[3];
+ callCnt++;
+ }
-function callbackfn(val, idx, obj)
-{
- if (callCnt == 0)
- delete arr[3];
- callCnt++;
-}
-
-var arr = [1, 2, 3, 4, 5];
-arr.forEach(callbackfn)
+ var arr = [1,2,3,4,5];
+ arr.forEach(callbackfn)
assert.sameValue(callCnt, 4, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js
index d81ed613f..c45a36fc0 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-3.js
@@ -9,15 +9,14 @@ description: >
Array.length is decreased
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ arr.length=3;
+ callCnt++;
+ }
-function callbackfn(val, idx, obj)
-{
- arr.length = 3;
- callCnt++;
-}
-
-var arr = [1, 2, 3, 4, 5];
-arr.forEach(callbackfn);
+ var arr = [1,2,3,4,5];
+ arr.forEach(callbackfn);
assert.sameValue(callCnt, 3, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js
index 96180c3ab..c178ead68 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-4.js
@@ -9,17 +9,16 @@ description: >
sparse array
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ arr[1000] = 3;
+ callCnt++;
+ }
-function callbackfn(val, idx, obj)
-{
- arr[1000] = 3;
- callCnt++;
-}
-
-var arr = new Array(10);
-arr[1] = 1;
-arr[2] = 2;
-arr.forEach(callbackfn);
+ var arr = new Array(10);
+ arr[1] = 1;
+ arr[2] = 2;
+ arr.forEach(callbackfn);
assert.sameValue(callCnt, 2, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js
index 9c56fa65c..71a7d7b93 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-5.js
@@ -9,18 +9,17 @@ description: >
call when same index is also present in prototype
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ delete arr[4];
+ callCnt++;
+ }
-function callbackfn(val, idx, obj)
-{
- delete arr[4];
- callCnt++;
-}
+ Array.prototype[4] = 5;
-Array.prototype[4] = 5;
-
-var arr = [1, 2, 3, 4, 5];
-arr.forEach(callbackfn)
-delete Array.prototype[4];
+ var arr = [1,2,3,4,5];
+ arr.forEach(callbackfn)
+ delete Array.prototype[4];
assert.sameValue(callCnt, 5, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js
index eb8ad48c6..ba0994154 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-7.js
@@ -9,16 +9,16 @@ description: >
after the call
---*/
-var result = false;
-var arr = [1, 2, 3, 4, 5];
+ var result = false;
+ var arr = [1, 2, 3, 4, 5];
-function callbackfn(val, Idx, obj) {
- arr[4] = 6;
- if (val >= 6) {
- result = true;
- }
-}
+ function callbackfn(val, Idx, obj) {
+ arr[4] = 6;
+ if (val >= 6) {
+ result = true;
+ }
+ }
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js
index 8a2065833..df0a1c9bc 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-8.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.18-7-8
description: Array.prototype.forEach - no observable effects occur if len is 0
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 0
-};
+ var obj = { 0: 11, 1: 12, length: 0 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js
index 361e22528..1c9ab1037 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-9.js
@@ -9,26 +9,21 @@ description: >
number of iterations
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(val, idx, obj) {
+ called++;
+ }
-function callbackfn(val, idx, obj) {
- called++;
-}
+ var obj = { 1: 12, 2: 9, length: 2 };
-var obj = {
- 1: 12,
- 2: 9,
- length: 2
-};
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ obj.length = 3;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- obj.length = 3;
- return 11;
- },
- configurable: true
-});
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js
index ad7133ffb..647090637 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-1.js
@@ -9,15 +9,14 @@ description: >
been assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
-}
-
-var arr = new Array(10);
-arr[1] = undefined;
-arr.forEach(callbackfn);
+ var arr = new Array(10);
+ arr[1] = undefined;
+ arr.forEach(callbackfn);
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js
index b3e6e5cc3..716fc69ff 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-10.js
@@ -9,31 +9,28 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: 2,
- length: 20
-};
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.forEach.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js
index 5c7ee84f7..e505e3d4d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-11.js
@@ -9,28 +9,28 @@ description: >
prototype index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [0, , ];
+ var arr = [0, , ];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.forEach(callbackfn);
+ Array.prototype[1] = 1;
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js
index a7de152f1..a9350d299 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-12.js
@@ -10,29 +10,25 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 0,
- 1: 111,
- length: 10
-};
+ var obj = { 0: 0, 1: 111, length: 10 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.forEach.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js
index ecc5607a5..b0b704f1a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-13.js
@@ -9,24 +9,24 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
-var arr = [0, 111];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.forEach(callbackfn);
+ Array.prototype[1] = 1;
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js
index 8a09839a5..8106ac8ed 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-14.js
@@ -9,27 +9,27 @@ description: >
property not to be visited
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var arr = [0, 1, 2, "last"];
+ var arr = [0, 1, 2, "last"];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js
index d92cf600a..57a7cb646 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-15.js
@@ -9,30 +9,30 @@ description: >
prototype property causes prototype index property to be visited
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- testResult = true;
- }
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js
index 864b5aac6..c337ed6a7 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-16.js
@@ -10,31 +10,31 @@ description: >
flags: [noStrict]
---*/
-var testResult = false;
-
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- testResult = true;
- }
-}
-
-var arr = [0, 1, 2];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
-
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
-
-arr.forEach(callbackfn);
+ var testResult = false;
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js
index abc78638b..4d1ba1c19 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-2.js
@@ -9,24 +9,24 @@ description: >
here
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "length") {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "length") {
+ testResult = true;
+ }
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js
index d949efd18..71abd46a0 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-3.js
@@ -9,29 +9,26 @@ description: >
here
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 8) {
- testResult = false;
- }
-}
-var obj = {
- 2: 6.99,
- 8: 19
-};
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 8) {
+ testResult = false;
+ }
+ }
+ var obj = { 2: 6.99, 8: 19 };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[8];
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[8];
+ return 10;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js
index af22a0219..d9315e91d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-4.js
@@ -9,31 +9,29 @@ description: >
current position are visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js
index fda33ef75..0afda4bd3 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-5.js
@@ -9,29 +9,29 @@ description: >
current position are visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js
index 8e5262582..a26a16afe 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-6.js
@@ -9,31 +9,29 @@ description: >
after current position are visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js
index 11d9bd6ec..48619ba10 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-7.js
@@ -9,29 +9,29 @@ description: >
after current position are visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js
index 0e7f8c308..d850238c6 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-8.js
@@ -9,36 +9,34 @@ description: >
property not to be visited on an Array-like object
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var obj = {
- length: 2
-};
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.forEach.call(obj, callbackfn);
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { length: 2 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js
index aa579d22b..b9fda4c35 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-b-9.js
@@ -9,34 +9,34 @@ description: >
property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var arr = [1, 2];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
-
-arr.forEach(callbackfn);
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [1, 2];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js
index 4261196fb..8983f724e 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-1.js
@@ -9,20 +9,17 @@ description: >
property on an Array-like object
---*/
-var kValue = {};
-var testResult = false;
+ var kValue = { };
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- testResult = (val === kValue);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ testResult = (val === kValue);
+ }
+ }
-var obj = {
- 5: kValue,
- length: 100
-};
+ var obj = { 5: kValue, length: 100 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js
index 1411c10bd..4b6a3b8aa 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-10.js
@@ -9,23 +9,23 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 2) {
- testResult = (val === 12);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2) {
+ testResult = (val === 12);
+ }
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "2", {
- get: function() {
- return 12;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js
index b313ad7c6..d886a548f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-11.js
@@ -10,31 +10,29 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-var proto = {
- 0: 5
-};
+ var proto = { 0: 5 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-Object.defineProperty(child, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js
index 493e9632c..8c97ccda4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-12.js
@@ -9,25 +9,25 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 111);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 111);
+ }
+ }
-var arr = [];
+ var arr = [];
-Array.prototype[0] = 10;
+ Array.prototype[0] = 10;
-Object.defineProperty(arr, "0", {
- get: function() {
- return 111;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 111;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js
index c3d66f5f4..5b5966bd8 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-13.js
@@ -10,37 +10,37 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (val === 12);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (val === 12);
+ }
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "1", {
- get: function() {
- return 6;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 6;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-Object.defineProperty(child, "1", {
- get: function() {
- return 12;
- },
- configurable: true
-});
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return 12;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js
index e87ed433e..8222ec722 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-14.js
@@ -9,30 +9,30 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
-
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
-
-var arr = [];
-
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-arr.forEach(callbackfn);
+ var testResult = false;
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
+
+ var arr = [];
+
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js
index 5eebc81ea..4782e16db 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-15.js
@@ -9,29 +9,29 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (val === 11);
+ }
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 20;
+ var child = new Con();
+ child.length = 20;
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js
index bf0c514cc..5abba48e7 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-16.js
@@ -9,21 +9,21 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-[, , , ].forEach(callbackfn);
+ [, , , ].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js
index c63d80321..a3258cbd5 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-17.js
@@ -9,22 +9,20 @@ description: >
property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (typeof val === "undefined");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof val === "undefined");
+ }
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js
index ae7114850..a6a8df077 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-18.js
@@ -9,21 +9,21 @@ description: >
property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (typeof val === "undefined");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (typeof val === "undefined");
+ }
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js
index 2c1a00be6..12b0e0f29 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-19.js
@@ -10,30 +10,28 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
-
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (typeof val === "undefined");
- }
-}
-
-var obj = {
- length: 2
-};
-
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
-
-Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 10;
- },
- configurable: true
-});
-
-Array.prototype.forEach.call(obj, callbackfn);
+ var testResult = false;
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof val === "undefined");
+ }
+ }
+
+ var obj = { length: 2 };
+
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
+
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
+
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js
index c5c0e5942..03ba5f4a1 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-2.js
@@ -9,14 +9,14 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js
index 3d12eb668..6bd5c5402 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-20.js
@@ -10,28 +10,28 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (typeof val === "undefined");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (typeof val === "undefined");
+ }
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 100;
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js
index a185cb0a0..d952c57dc 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-21.js
@@ -9,26 +9,26 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (typeof val === "undefined");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof val === "undefined");
+ }
+ }
-var proto = {};
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
+ var child = new Con();
+ child.length = 2;
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js
index c3ccfca7b..baf2b2bcf 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-22.js
@@ -9,19 +9,19 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (typeof val === "undefined");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (typeof val === "undefined");
+ }
+ }
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
-[, 1].forEach(callbackfn);
+ [, 1].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js
index 7f192e129..51930b840 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-25.js
@@ -10,18 +10,18 @@ description: >
is less than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.forEach.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.forEach.call(arguments, callbackfn);
+ };
-func(11);
+ func(11);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js
index 22775361f..51aefae34 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-26.js
@@ -10,27 +10,27 @@ description: >
equals number of parameters)
---*/
-var called = 0;
-var testResult = false;
+ var called = 0;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- called++;
- if (called !== 1 && !testResult) {
- return;
- }
- if (idx === 0) {
- testResult = (val === 11);
- } else if (idx === 1) {
- testResult = (val === 9);
- } else {
- testResult = false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (called !== 1 && !testResult) {
+ return;
+ }
+ if (idx === 0) {
+ testResult = (val === 11);
+ } else if (idx === 1) {
+ testResult = (val === 9);
+ } else {
+ testResult = false;
+ }
+ }
-var func = function(a, b) {
- Array.prototype.forEach.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ Array.prototype.forEach.call(arguments, callbackfn);
+ };
-func(11, 9);
+ func(11, 9);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js
index 8ae05bc5a..21734ecca 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-27.js
@@ -10,29 +10,29 @@ description: >
is greater than number of parameters)
---*/
-var called = 0;
-var testResult = false;
+ var called = 0;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- called++;
- if (called !== 1 && !testResult) {
- return;
- }
- if (idx === 0) {
- testResult = (val === 11);
- } else if (idx === 1) {
- testResult = (val === 12);
- } else if (idx === 2) {
- testResult = (val === 9);
- } else {
- testResult = false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (called !== 1 && !testResult) {
+ return;
+ }
+ if (idx === 0) {
+ testResult = (val === 11);
+ } else if (idx === 1) {
+ testResult = (val === 12);
+ } else if (idx === 2) {
+ testResult = (val === 9);
+ } else {
+ testResult = false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.forEach.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.forEach.call(arguments, callbackfn);
+ };
-func(11, 12, 9);
+ func(11, 12, 9);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js
index ca2a6f902..7bf828719 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-28.js
@@ -9,35 +9,35 @@ description: >
iterations is observed on an Array
---*/
-var preIterVisible = false;
-var arr = [];
-var testResult = false;
+ var preIterVisible = false;
+ var arr = [];
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (val === 9);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (val === 9);
+ }
+ }
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 13;
- }
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 13;
+ }
+ },
+ configurable: true
+ });
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js
index 12f468ac7..9d9da525a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-29.js
@@ -9,37 +9,35 @@ description: >
iterations is observed on an Array-like object
---*/
-var preIterVisible = false;
-var obj = {
- length: 2
-};
-var testResult = false;
+ var preIterVisible = false;
+ var obj = { length: 2 };
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (val === 9);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (val === 9);
+ }
+ }
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 13;
- }
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 13;
+ }
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js
index 7ee64853f..c7abc31d7 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-3.js
@@ -9,26 +9,24 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var kValue = "abc";
-var testResult = false;
+ var kValue = "abc";
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- testResult = (val === kValue);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ testResult = (val === kValue);
+ }
+ }
-var proto = {
- 5: 100
-};
+ var proto = { 5: 100 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[5] = kValue;
-child.length = 10;
+ var child = new Con();
+ child[5] = kValue;
+ child.length = 10;
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js
index 2ded257f9..0787f9b95 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-30.js
@@ -9,35 +9,30 @@ description: >
terminate iteration on an Array-like object
---*/
-var obj = {
- 0: 11,
- 5: 10,
- 10: 8,
- length: 20
-};
-var accessed = false;
+ var obj = { 0: 11, 5: 10, 10: 8, length: 20 };
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ }
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- get: function() {
- accessed = true;
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ accessed = true;
+ return 100;
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js
index b6745f6d1..e8da569a8 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-31.js
@@ -9,33 +9,33 @@ description: >
terminate iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ }
-var arr = [];
-arr[5] = 10;
-arr[10] = 100;
+ var arr = [];
+ arr[5] = 10;
+ arr[10] = 100;
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- accessed = true;
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ accessed = true;
+ return 100;
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js
index 3aa9c4573..ed8fffe01 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-4.js
@@ -9,16 +9,16 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 12);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 12);
+ }
+ }
-Array.prototype[0] = 11;
+ Array.prototype[0] = 11;
-[12].forEach(callbackfn);
+ [12].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js
index 0cba85375..4ddef569a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-5.js
@@ -10,33 +10,33 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: 11,
- configurable: true
-});
-
-Array.prototype.forEach.call(child, callbackfn);
+ var testResult = false;
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: 11,
+ configurable: true
+ });
+
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js
index 213de16bd..691feab76 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-6.js
@@ -9,21 +9,21 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 9;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 9;
+ },
+ configurable: true
+ });
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js
index 28f747e83..75d5890f8 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-7.js
@@ -9,25 +9,23 @@ description: >
data property on an Array-like object
---*/
-var kValue = 'abc';
-var testResult = false;
+ var kValue = 'abc';
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- testResult = (val === kValue);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ testResult = (val === kValue);
+ }
+ }
-var proto = {
- 5: kValue
-};
+ var proto = { 5: kValue };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
-Array.prototype.forEach.call(child, callbackfn);
+ Array.prototype.forEach.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js
index 9ede560ba..8943de818 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-8.js
@@ -9,16 +9,16 @@ description: >
data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- testResult = (val === 13);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ testResult = (val === 13);
+ }
+ }
-Array.prototype[1] = 13;
+ Array.prototype[1] = 13;
-[, , , ].forEach(callbackfn);
+ [, , , ].forEach(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js
index 51c77ca23..d2fc330af 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-i-9.js
@@ -9,26 +9,23 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- testResult = (val === 11);
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ testResult = (val === 11);
+ }
+ }
-var obj = {
- 10: 10,
- length: 20
-};
+ var obj = { 10: 10, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js
index e0eb47829..189dc1a57 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-1.js
@@ -7,19 +7,18 @@ es5id: 15.4.4.18-7-c-ii-1
description: Array.prototype.forEach - callbackfn called with correct parameters
---*/
-var bPar = true;
-var bCalled = false;
+ var bPar = true;
+ var bCalled = false;
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(obj[idx] !== val)
+ bPar = false;
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (obj[idx] !== val)
- bPar = false;
-}
-
-var arr = [0, 1, true, null, new Object(), "five"];
-arr[999999] = -6.6;
-arr.forEach(callbackfn);
+ var arr = [0,1,true,null,new Object(),"five"];
+ arr[999999] = -6.6;
+ arr.forEach(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
assert.sameValue(bPar, true, 'bPar');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js
index 1f6e4baa3..4e44bb713 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-10.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val) {
+ result = (val > 10);
+ }
-function callbackfn(val) {
- result = (val > 10);
-}
-
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js
index a2991bb19..f0a81a871 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-11.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx) {
+ result = (val > 10 && arguments[2][idx] === val);
+ }
-function callbackfn(val, idx) {
- result = (val > 10 && arguments[2][idx] === val);
-}
-
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js
index 667bec227..af31ca180 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-12.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (val > 10 && obj[idx] === val);
+ }
-function callbackfn(val, idx, obj) {
- result = (val > 10 && obj[idx] === val);
-}
-
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js
index 46a0ec317..80df8a419 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-13.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.18-7-c-ii-13
description: Array.prototype.forEach - callbackfn that uses arguments
---*/
-var result = false;
+ var result = false;
+ function callbackfn() {
+ result = (arguments[2][arguments[1]] === arguments[0]);
+ }
-function callbackfn() {
- result = (arguments[2][arguments[1]] === arguments[0]);
-}
-
-[11].forEach(callbackfn);
+ [11].forEach(callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js
index 739bae5f3..ef9ff8c4f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-16.js
@@ -9,17 +9,13 @@ description: >
object when T is not an object (T is a boolean)
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (this.valueOf() !== false);
+ }
-function callbackfn(val, idx, obj) {
- result = (this.valueOf() !== false);
-}
+ var obj = { 0: 11, length: 2 };
-var obj = {
- 0: 11,
- length: 2
-};
-
-Array.prototype.forEach.call(obj, callbackfn, false);
+ Array.prototype.forEach.call(obj, callbackfn, false);
assert.sameValue(result, false, 'result');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js
index 44e2e9bac..8967922b2 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-17.js
@@ -9,17 +9,13 @@ description: >
object when T is not an object (T is a number)
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, o) {
+ result = (5 === this.valueOf());
+ }
-function callbackfn(val, idx, o) {
- result = (5 === this.valueOf());
-}
+ var obj = { 0: 11, length: 2 };
-var obj = {
- 0: 11,
- length: 2
-};
-
-Array.prototype.forEach.call(obj, callbackfn, 5);
+ Array.prototype.forEach.call(obj, callbackfn, 5);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js
index 3cf057a31..3b073f019 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-18.js
@@ -9,17 +9,13 @@ description: >
object when T is not an object (T is a string)
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = ('hello' === this.valueOf());
+ }
-function callbackfn(val, idx, obj) {
- result = ('hello' === this.valueOf());
-}
+ var obj = { 0: 11, length: 2 };
-var obj = {
- 0: 11,
- length: 2
-};
-
-Array.prototype.forEach.call(obj, callbackfn, "hello");
+ Array.prototype.forEach.call(obj, callbackfn, "hello");
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js
index df0f1401e..677a50236 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-19.js
@@ -7,24 +7,18 @@ es5id: 15.4.4.18-7-c-ii-19
description: Array.prototype.forEach - non-indexed properties are not called
---*/
-var accessed = false;
-var result = true;
+ var accessed = false;
+ var result = true;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ if (val === 8) {
+ result = false;
+ }
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- if (val === 8) {
- result = false;
- }
-}
+ var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 };
-var obj = {
- 0: 11,
- 10: 12,
- non_index_property: 8,
- length: 20
-};
-
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js
index 6dcd31b13..4140f28cb 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-2.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.18-7-c-ii-2
description: Array.prototype.forEach - callbackfn takes 3 arguments
---*/
-var parCnt = 3;
-var bCalled = false
+ var parCnt = 3;
+ var bCalled = false
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(arguments.length !== 3)
+ parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (arguments.length !== 3)
- parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-arr.forEach(callbackfn);
+ var arr = [0,1,2,3,4,5,6,7,8,9];
+ arr.forEach(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
assert.sameValue(parCnt, 3, 'parCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js
index d0a6f846d..cf6b3fe8b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-20.js
@@ -9,21 +9,15 @@ description: >
parameters (thisArg is correct)
---*/
-var result = false;
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ result = (10 === this.threshold);
+ }
-function callbackfn(val, idx, obj) {
- result = (10 === this.threshold);
-}
+ var thisArg = { threshold: 10 };
-var thisArg = {
- threshold: 10
-};
+ var obj = { 0: 11, length: 1 };
-var obj = {
- 0: 11,
- length: 1
-};
-
-Array.prototype.forEach.call(obj, callbackfn, thisArg);
+ Array.prototype.forEach.call(obj, callbackfn, thisArg);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js
index a165b4820..987960625 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-21.js
@@ -9,27 +9,23 @@ description: >
parameters (kValue is correct)
---*/
-var resultOne = false;
-var resultTwo = false;
+ var resultOne = false;
+ var resultTwo = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- resultOne = (val === 11);
- }
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ resultOne = (val === 11);
+ }
- if (idx === 1) {
- resultTwo = (val === 12);
- }
+ if (idx === 1) {
+ resultTwo = (val === 12);
+ }
-}
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(resultOne, 'resultOne !== true');
assert(resultTwo, 'resultTwo !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js
index 8b29f06da..3f7fa9349 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-22.js
@@ -9,27 +9,23 @@ description: >
parameters (the index k is correct)
---*/
-var resultOne = false;
-var resultTwo = false;
+ var resultOne = false;
+ var resultTwo = false;
-function callbackfn(val, idx, obj) {
- if (val === 11) {
- resultOne = (idx === 0);
- }
+ function callbackfn(val, idx, obj) {
+ if (val === 11) {
+ resultOne = (idx === 0);
+ }
- if (val === 12) {
- resultTwo = (idx === 1);
- }
+ if (val === 12) {
+ resultTwo = (idx === 1);
+ }
-}
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(resultOne, 'resultOne !== true');
assert(resultTwo, 'resultTwo !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js
index 24ae74378..559f0ea68 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-23.js
@@ -9,16 +9,13 @@ description: >
parameters (this object O is correct)
---*/
-var result = false;
-var obj = {
- 0: 11,
- length: 2
-};
+ var result = false;
+ var obj = { 0: 11, length: 2 };
-function callbackfn(val, idx, o) {
- result = (obj === o);
-}
+ function callbackfn(val, idx, o) {
+ result = (obj === o);
+ }
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js
index 89d2da4a0..aafb439dd 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-4.js
@@ -9,21 +9,20 @@ description: >
order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = 0;
-var called = 0;
-var result = true;
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = 0;
+ var called = 0;
+ var result = true;
+ function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ result = false;
+ } else {
+ lastIdx++;
+ }
+ }
-function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- result = false;
- } else {
- lastIdx++;
- }
-}
-
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert(result, 'result !== true');
assert.sameValue(arr.length, called, 'arr.length');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js
index 1b597b8ed..11159ba6f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-5.js
@@ -9,23 +9,23 @@ description: >
iteration and not prior to starting the loop on an Array
---*/
-var result = true;
-var kIndex = [];
+ var result = true;
+ var kIndex = [];
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- //Each position should be visited one time, which means k is accessed one time during iterations.
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
- result = false;
- }
- kIndex[idx] = 1;
- } else {
- result = false;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
+ result = false;
+ }
+ kIndex[idx] = 1;
+ } else {
+ result = false;
+ }
+ }
-[11, 12, 13, 14].forEach(callbackfn, undefined);
+ [11, 12, 13, 14].forEach(callbackfn, undefined);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js
index 22d73e78b..b1474e751 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-6.js
@@ -9,20 +9,17 @@ description: >
consistent
---*/
-var result = false;
-var obj = {
- 0: 11,
- length: 1
-};
-var thisArg = {};
+ var result = false;
+ var obj = { 0: 11, length: 1 };
+ var thisArg = {};
-function callbackfn() {
- result = (this === thisArg &&
- arguments[0] === 11 &&
- arguments[1] === 0 &&
- arguments[2] === obj);
-}
+ function callbackfn() {
+ result = (this === thisArg &&
+ arguments[0] === 11 &&
+ arguments[1] === 0 &&
+ arguments[2] === obj);
+ }
-Array.prototype.forEach.call(obj, callbackfn, thisArg);
+ Array.prototype.forEach.call(obj, callbackfn, thisArg);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js
index c7f28a11f..0941fe49b 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-7.js
@@ -9,24 +9,19 @@ description: >
callbackfn terminate iteration
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 0) {
- accessed = true;
- }
- if (idx === 0) {
- throw new Error("Exception occurred in callbackfn");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 0) {
+ accessed = true;
+ }
+ if (idx === 0) {
+ throw new Error("Exception occurred in callbackfn");
+ }
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Error, function() {
- Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js
index 452044f84..c1b460cc3 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-8.js
@@ -9,23 +9,19 @@ description: >
previous iterations is observed
---*/
-var result = false;
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var result = false;
+ var obj = { 0: 11, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- if (idx === 0) {
- obj[idx + 1] = 8;
- }
+ function callbackfn(val, idx, o) {
+ if (idx === 0) {
+ obj[idx + 1] = 8;
+ }
- if (idx === 1) {
- result = (val === 8);
- }
-}
+ if (idx === 1) {
+ result = (val === 8);
+ }
+ }
-Array.prototype.forEach.call(obj, callbackfn);
+ Array.prototype.forEach.call(obj, callbackfn);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js
index 5f6aa9cfd..b8396ea60 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-7-c-ii-9.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn() {
+ called++;
+ }
-function callbackfn() {
- called++;
-}
-
-[11, 12].forEach(callbackfn);
+ [11, 12].forEach(callbackfn);
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js
index cf592c1e4..4716477c7 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-1.js
@@ -9,11 +9,8 @@ description: >
(empty array)
---*/
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = [].forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = [].forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js
index 373440748..ef289af43 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-10.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.18-8-10
description: Array.prototype.forEach - subclassed array when length is reduced
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 1;
-function foo() {}
-var f = new foo();
-f.length = 1;
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js
index d594b58a2..9c70a3a05 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-11.js
@@ -9,12 +9,12 @@ description: >
called on
---*/
-function callbackfn(val, idx, obj)
-{
- return true;
-}
-var arr = [1, 2, 3, 4, 5];
-arr.forEach(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return true;
+ }
+ var arr = [1,2,3,4,5];
+ arr.forEach(callbackfn);
assert.sameValue(arr[0], 1, 'arr[0]');
assert.sameValue(arr[1], 2, 'arr[1]');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js
index 3b92ddb24..74e0eef2c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-12.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.18-8-12
description: Array.prototype.forEach doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ }
+ var arr = [1,2,3,4,5];
+ arr["i"] = 10;
+ arr[true] = 11;
-function callbackfn(val, idx, obj)
-{
- callCnt++;
-}
-var arr = [1, 2, 3, 4, 5];
-arr["i"] = 10;
-arr[true] = 11;
-
-arr.forEach(callbackfn);
+ arr.forEach(callbackfn);
assert.sameValue(callCnt, 5, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js
index de40f14e3..8137d9b4a 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-13.js
@@ -9,13 +9,12 @@ description: >
0
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
-}
-
-var result = [].forEach(callbackfn);
+ var result = [].forEach(callbackfn);
assert.sameValue(typeof result, "undefined", 'typeof result');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js
index 96c4cdc45..24a5efda0 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-2.js
@@ -9,17 +9,13 @@ description: >
(subclassed Array, length overridden to null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js
index 9dbf01bec..ad6d2c88d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-3.js
@@ -9,17 +9,13 @@ description: >
(subclassed Array, length overridden to false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js
index fd9bfba94..eca6eb28c 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-4.js
@@ -9,17 +9,13 @@ description: >
(subclassed Array, length overridden to 0 (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js
index 6e3ce9bee..89ef96a1d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-5.js
@@ -9,17 +9,13 @@ description: >
(subclassed Array, length overridden to '0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js
index 0e26ea86f..57bf3415d 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-6.js
@@ -9,23 +9,15 @@ description: >
(subclassed Array, length overridden with obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js
index d08dadd7a..941c6ee3f 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-7.js
@@ -10,28 +10,20 @@ description: >
(toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js
index dee5abda6..acfa321f4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-8.js
@@ -9,31 +9,27 @@ description: >
(subclassed Array, length overridden with []
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [];
-f.length = [];
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js
index 2ce7678bf..3e36453a4 100644
--- a/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js
+++ b/test/built-ins/Array/prototype/forEach/15.4.4.18-8-9.js
@@ -9,32 +9,28 @@ description: >
(subclassed Array, length overridden with [0]
---*/
-foo.prototype = new Array(1, 2, 3);
-
-function foo() {}
-var f = new foo();
-
-f.length = [0];
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-var callCnt = 0;
-
-function cb() {
- callCnt++
-}
-var i = f.forEach(cb);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ f.length = [0];
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+
+ var callCnt = 0;
+ function cb(){callCnt++}
+ var i = f.forEach(cb);
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js
index 0cfaf6ea8..bdaef0503 100644
--- a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js
+++ b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A1.js
@@ -8,6 +8,4 @@ es5id: 15.4.4.18_A1
description: Freezes array.forEach during a forEach to see if it works
---*/
-['z'].forEach(function() {
- Object.freeze(Array.prototype.forEach);
-});
+['z'].forEach(function(){ Object.freeze(Array.prototype.forEach); });
diff --git a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js
index c743d247e..a95da06dd 100644
--- a/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js
+++ b/test/built-ins/Array/prototype/forEach/S15.4.4.18_A2.js
@@ -9,8 +9,6 @@ description: Freezes array.forEach during a forEach to see if it works
---*/
function foo() {
- ['z'].forEach(function() {
- Object.freeze(Array.prototype.forEach);
- });
+ ['z'].forEach(function(){ Object.freeze(Array.prototype.forEach); });
}
foo();
diff --git a/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js b/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js
index 84bb4526d..ebca5a043 100644
--- a/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js
+++ b/test/built-ins/Array/prototype/includes/fromIndex-equal-or-greater-length-returns-false.js
@@ -18,6 +18,6 @@ info: |
8. Return false.
---*/
-var sample = [7, 7, 7, 7];
+var sample = [ 7, 7, 7, 7 ];
assert.sameValue(sample.includes(7, 4), false, "length");
assert.sameValue(sample.includes(7, 5), false, "length + 1");
diff --git a/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js b/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js
index 7d98d2a68..6d5393dbb 100644
--- a/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js
+++ b/test/built-ins/Array/prototype/includes/search-not-found-returns-false.js
@@ -35,9 +35,7 @@ assert.sameValue([null].includes(undefined), false, "undefined");
assert.sameValue([Symbol("1")].includes(Symbol("1")), false, "symbol");
assert.sameValue([{}].includes({}), false, "object");
-assert.sameValue([
- []
-].includes([]), false, "array");
+assert.sameValue([[]].includes([]), false, "array");
var sample = [42];
assert.sameValue(sample.includes(sample), false, "this");
diff --git a/test/built-ins/Array/prototype/includes/sparse.js b/test/built-ins/Array/prototype/includes/sparse.js
index 751c2c928..bd272fe93 100644
--- a/test/built-ins/Array/prototype/includes/sparse.js
+++ b/test/built-ins/Array/prototype/includes/sparse.js
@@ -21,18 +21,18 @@ info: |
---*/
assert.sameValue(
- [, , , ].includes(undefined),
+ [ , , , ].includes(undefined),
true,
"[ , , , ].includes(undefined)"
);
assert.sameValue(
- [, , , 42, ].includes(undefined, 4),
+ [ , , , 42, ].includes(undefined, 4),
false,
"[ , , , 42, ].includes(undefined, 4)"
);
-var sample = [, , , 42, , ];
+var sample = [ , , , 42, , ];
assert.sameValue(
sample.includes(undefined),
diff --git a/test/built-ins/Array/prototype/includes/tolength-length.js b/test/built-ins/Array/prototype/includes/tolength-length.js
index c1e82b9da..a3c868474 100644
--- a/test/built-ins/Array/prototype/includes/tolength-length.js
+++ b/test/built-ins/Array/prototype/includes/tolength-length.js
@@ -72,16 +72,8 @@ assert.sameValue([].includes.call(obj, "a"), false, "false");
obj.length = true;
assert.sameValue([].includes.call(obj, "a"), true, "true");
-obj.length = {
- valueOf: function() {
- return 2;
- }
-};
+obj.length = { valueOf: function() { return 2; } };
assert.sameValue([].includes.call(obj, "b"), true, "ordinary object.valueOf");
-obj.length = {
- toString: function() {
- return 2;
- }
-};
+obj.length = { toString: function() { return 2; } };
assert.sameValue([].includes.call(obj, "b"), true, "ordinary object.toString");
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js
index ea9ca6068..1eb9ef72e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.indexOf applied to undefined throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(undefined);
+ Array.prototype.indexOf.call(undefined);
});
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js
index 4622e10a0..1a5520218 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-10.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-1-10
description: Array.prototype.indexOf applied to the Math object
---*/
-Math[1] = true;
-Math.length = 2;
+ Math[1] = true;
+ Math.length = 2;
assert.sameValue(Array.prototype.indexOf.call(Math, true), 1, 'Array.prototype.indexOf.call(Math, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js
index 51d4a331e..bcb3b21ea 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-11.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-11
description: Array.prototype.indexOf applied to Date object
---*/
-var obj = new Date();
-obj.length = 2;
-obj[1] = true;
+ var obj = new Date();
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js
index 4c23949e9..c416b6e1b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-12.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-12
description: Array.prototype.indexOf applied to RegExp object
---*/
-var obj = new RegExp();
-obj.length = 2;
-obj[1] = true;
+ var obj = new RegExp();
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js
index b339869a0..c1ca78731 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-13.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-13
description: Array.prototype.indexOf applied to the JSON object
---*/
-var targetObj = {};
+ var targetObj = {};
-JSON[3] = targetObj;
-JSON.length = 5;
+ JSON[3] = targetObj;
+ JSON.length = 5;
assert.sameValue(Array.prototype.indexOf.call(JSON, targetObj), 3, 'Array.prototype.indexOf.call(JSON, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js
index 06c02d8f1..6f116d5ce 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-14.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-14
description: Array.prototype.indexOf applied to Error object
---*/
-var obj = new SyntaxError();
-obj[1] = true;
-obj.length = 2;
+ var obj = new SyntaxError();
+ obj[1] = true;
+ obj.length = 2;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js
index 598ba594e..7a6c9b7ca 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-15.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-15
description: Array.prototype.indexOf applied to Arguments object
---*/
-function fun() {
- return arguments;
-}
-var obj = fun(1, true, 3);
+ function fun() {
+ return arguments;
+ }
+ var obj = fun(1, true, 3);
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js
index 5e348a54e..5584d5f68 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.indexOf applied to null throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(null);
+ Array.prototype.indexOf.call(null);
});
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js
index 3bfe5e7a6..510a693ed 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-3.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-3
description: Array.prototype.indexOf applied to boolean primitive
---*/
-var targetObj = {};
+ var targetObj = {};
-Boolean.prototype[1] = targetObj;
-Boolean.prototype.length = 2;
+ Boolean.prototype[1] = targetObj;
+ Boolean.prototype.length = 2;
assert.sameValue(Array.prototype.indexOf.call(true, targetObj), 1, 'Array.prototype.indexOf.call(true, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js
index 5f0dd9ed5..844e34af4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-4.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-4
description: Array.prototype.indexOf applied to Boolean Object
---*/
-var obj = new Boolean(false);
-obj.length = 2;
-obj[1] = true;
+ var obj = new Boolean(false);
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js
index 4fa661c8b..ccca65776 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-5.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-5
description: Array.prototype.indexOf applied to number primitive
---*/
-var targetObj = {};
+ var targetObj = {};
-Number.prototype[1] = targetObj;
-Number.prototype.length = 2;
+ Number.prototype[1] = targetObj;
+ Number.prototype.length = 2;
assert.sameValue(Array.prototype.indexOf.call(5, targetObj), 1, 'Array.prototype.indexOf.call(5, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js
index 928377959..c6416ebe4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-6.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-1-6
description: Array.prototype.indexOf applied to Number object
---*/
-var obj = new Number(-3);
-obj.length = 2;
-obj[1] = true;
+ var obj = new Number(-3);
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js
index eaa29361e..46575fb68 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-8.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.14-1-8
description: Array.prototype.indexOf applied to String object
---*/
-var obj = new String("null");
+ var obj = new String("null");
assert.sameValue(Array.prototype.indexOf.call(obj, 'l'), 2, 'Array.prototype.indexOf.call(obj, "l")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js
index 065d31bc7..76d8e87c0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-1-9.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-1-9
description: Array.prototype.indexOf applied to Function object
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[1] = true;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[1] = true;
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js
index 8a77b86f5..c0d6c537a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-1.js
@@ -9,13 +9,13 @@ description: >
array
---*/
-var a = new Array();
-a[100] = 1;
-a[99999] = "";
-a[10] = new Object();
-a[5555] = 5.5;
-a[123456] = "str";
-a[5] = 1E+309;
+ var a = new Array();
+ a[100] = 1;
+ a[99999] = "";
+ a[10] = new Object();
+ a[5555] = 5.5;
+ a[123456] = "str";
+ a[5] = 1E+309;
assert.sameValue(a.indexOf(1), 100, 'a.indexOf(1)');
assert.sameValue(a.indexOf(""), 99999, 'a.indexOf("")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js
index fbb926888..124043c97 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-10-2.js
@@ -9,19 +9,12 @@ description: >
access any other properties
---*/
-var accessed = false;
-var f = {
- length: 0
-};
-Object.defineProperty(f, "0", {
- get: function() {
- accessed = true;
- return 1;
- }
-});
+ var accessed = false;
+ var f = {length: 0};
+ Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}});
-var i = Array.prototype.indexOf.call(f, 1);
+ var i = Array.prototype.indexOf.call(f,1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js
index e14c28ba3..61dd7f294 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-1.js
@@ -9,14 +9,8 @@ description: >
Array-like object
---*/
-var objOne = {
- 1: true,
- length: 2
-};
-var objTwo = {
- 2: true,
- length: 2
-};
+ var objOne = { 1: true, length: 2 };
+ var objTwo = { 2: true, length: 2 };
assert.sameValue(Array.prototype.indexOf.call(objOne, true), 1, 'Array.prototype.indexOf.call(objOne, true)');
assert.sameValue(Array.prototype.indexOf.call(objTwo, true), -1, 'Array.prototype.indexOf.call(objTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js
index bde4a7b79..f4c6f0b83 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-10.js
@@ -7,21 +7,21 @@ es5id: 15.4.4.14-2-10
description: Array.prototype.indexOf - 'length' is inherited accessor property
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var childOne = new Con();
-childOne[1] = true;
-var childTwo = new Con();
-childTwo[2] = true;
+ var childOne = new Con();
+ childOne[1] = true;
+ var childTwo = new Con();
+ childTwo[2] = true;
assert.sameValue(Array.prototype.indexOf.call(childOne, true), 1, 'Array.prototype.indexOf.call(childOne, true)');
assert.sameValue(Array.prototype.indexOf.call(childTwo, true), -1, 'Array.prototype.indexOf.call(childTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js
index d5d473e99..bb89914e0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-11.js
@@ -9,12 +9,10 @@ description: >
without a get function
---*/
-var obj = {
- 1: true
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 1: true };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js
index 205d52fbe..ff9ac06df 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-12.js
@@ -10,19 +10,17 @@ description: >
property
---*/
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-var obj = {
- 1: 1
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 1: 1 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js
index 833c45d70..6aa17ff1e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-13.js
@@ -9,16 +9,16 @@ description: >
without a get function
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = true;
+ var child = new Con();
+ child[1] = true;
assert.sameValue(Array.prototype.indexOf.call(child, true), -1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js
index 8807657e8..6ffd345db 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-14.js
@@ -7,9 +7,6 @@ es5id: 15.4.4.14-2-14
description: Array.prototype.indexOf - 'length' is undefined property
---*/
-var obj = {
- 0: true,
- 1: true
-};
+ var obj = { 0: true, 1: true };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js
index cce214933..2df759495 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-17.js
@@ -9,10 +9,10 @@ description: >
implements its own property get method
---*/
-var func = function(a, b) {
- arguments[2] = false;
- return Array.prototype.indexOf.call(arguments, true) === 1 &&
- Array.prototype.indexOf.call(arguments, false) === -1;
-};
+ var func = function (a, b) {
+ arguments[2] = false;
+ return Array.prototype.indexOf.call(arguments, true) === 1 &&
+ Array.prototype.indexOf.call(arguments, false) === -1;
+ };
assert(func(0, true), 'func(0, true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js
index e739dd81a..e48cb33de 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-18.js
@@ -9,9 +9,9 @@ description: >
its own property get method
---*/
-var str = new String("012");
+ var str = new String("012");
-String.prototype[3] = "3";
+ String.prototype[3] = "3";
assert.sameValue(Array.prototype.indexOf.call(str, "2"), 2, 'Array.prototype.indexOf.call(str, "2")');
assert.sameValue(Array.prototype.indexOf.call(str, "3"), -1, 'Array.prototype.indexOf.call(str, "3")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js
index b5735739f..09bb09dd3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-19.js
@@ -9,11 +9,11 @@ description: >
implements its own property get method
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[1] = "b";
-obj[2] = "c";
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[1] = "b";
+ obj[2] = "c";
assert.sameValue(Array.prototype.indexOf.call(obj, obj[1]), 1, 'Array.prototype.indexOf.call(obj, obj[1])');
assert.sameValue(Array.prototype.indexOf.call(obj, obj[2]), -1, 'Array.prototype.indexOf.call(obj, obj[2])');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js
index 9fba71821..d1fb4b7bb 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-2.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.14-2-2
description: Array.prototype.indexOf - 'length' is own data property on an Array
---*/
-var targetObj = {};
+ var targetObj = {};
-Array.prototype[2] = targetObj;
+ Array.prototype[2] = targetObj;
assert.sameValue([0, targetObj].indexOf(targetObj), 1, '[0, targetObj].indexOf(targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js
index db7ecfe83..c0c72be3b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-3.js
@@ -9,15 +9,13 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-var proto = {
- length: 0
-};
+ var proto = { length: 0 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[1] = true;
+ var child = new Con();
+ child.length = 2;
+ child[1] = true;
assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js
index dfc01cd8d..5a4f6f238 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-4.js
@@ -9,10 +9,10 @@ description: >
overrides an inherited data property on an Array
---*/
-var targetObj = {};
-var arrProtoLen;
+ var targetObj = {};
+ var arrProtoLen;
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
assert.sameValue([0, targetObj].indexOf(targetObj), 1, '[0, targetObj].indexOf(targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js
index 0f3909236..8c5523964 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-5.js
@@ -9,23 +9,23 @@ description: >
overrides an inherited accessor property on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[1] = true;
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[1] = true;
assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js
index 79269969a..39788558a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-6.js
@@ -7,17 +7,15 @@ es5id: 15.4.4.14-2-6
description: Array.prototype.indexOf - 'length' is an inherited data property
---*/
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var childOne = new Con();
-childOne[1] = true;
-var childTwo = new Con();
-childTwo[2] = true;
+ var childOne = new Con();
+ childOne[1] = true;
+ var childTwo = new Con();
+ childTwo[2] = true;
assert.sameValue(Array.prototype.indexOf.call(childOne, true), 1, 'Array.prototype.indexOf.call(childOne, true)');
assert.sameValue(Array.prototype.indexOf.call(childTwo, true), -1, 'Array.prototype.indexOf.call(childTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js
index 6a0ec2587..975a8673a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-7.js
@@ -7,24 +7,20 @@ es5id: 15.4.4.14-2-7
description: Array.prototype.indexOf - 'length' is own accessor property
---*/
-var objOne = {
- 1: true
-};
-var objTwo = {
- 2: true
-};
-Object.defineProperty(objOne, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-Object.defineProperty(objTwo, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var objOne = { 1: true };
+ var objTwo = { 2: true };
+ Object.defineProperty(objOne, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+ Object.defineProperty(objTwo, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(objOne, true), 1, 'Array.prototype.indexOf.call(objOne, true)');
assert.sameValue(Array.prototype.indexOf.call(objTwo, true), -1, 'Array.prototype.indexOf.call(objTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js
index 8ad55630e..92bf58f7a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-8.js
@@ -9,21 +9,19 @@ description: >
overrides an inherited data property
---*/
-var proto = {
- length: 0
-};
+ var proto = { length: 0 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = true;
+ var child = new Con();
+ child[1] = true;
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js
index 2bf8c82ef..5ec60e058 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-2-9.js
@@ -9,25 +9,25 @@ description: >
overrides an inherited accessor property
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = true;
+ var child = new Con();
+ child[1] = true;
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(child, true), 1, 'Array.prototype.indexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js
index 0787c3a9c..528bb1f48 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-1.js
@@ -7,10 +7,6 @@ es5id: 15.4.4.14-3-1
description: Array.prototype.indexOf - value of 'length' is undefined
---*/
-var obj = {
- 0: 1,
- 1: 1,
- length: undefined
-};
+ var obj = { 0: 1, 1: 1, length: undefined };
assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js
index 503c2206d..2d422228c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-10.js
@@ -9,9 +9,6 @@ description: >
(value is NaN)
---*/
-var obj = {
- 0: 0,
- length: NaN
-};
+ var obj = { 0: 0, length: NaN };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), -1, 'Array.prototype.indexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js
index 9914d8d78..dbccc238b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-11.js
@@ -9,11 +9,7 @@ description: >
positive number
---*/
-var obj = {
- 1: 1,
- 2: 2,
- length: "2"
-};
+ var obj = { 1: 1, 2: 2, length: "2" };
assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)');
assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js
index edc04e60c..c147d9355 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-12.js
@@ -9,11 +9,7 @@ description: >
negative number
---*/
-var obj = {
- 1: "true",
- 2: "2",
- length: "-4294967294"
-};
+ var obj = { 1: "true", 2: "2", length: "-4294967294" };
assert.sameValue(Array.prototype.indexOf.call(obj, "true"), -1, 'Array.prototype.indexOf.call(obj, "true")');
assert.sameValue(Array.prototype.indexOf.call(obj, "2"), -1, 'Array.prototype.indexOf.call(obj, "2")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js
index 0b2ea6bb6..d2ff4af50 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-13.js
@@ -9,11 +9,7 @@ description: >
decimal number
---*/
-var obj = {
- 199: true,
- 200: "200.59",
- length: "200.59"
-};
+ var obj = { 199: true, 200: "200.59", length: "200.59" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 199, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "200.59"), -1, 'Array.prototype.indexOf.call(obj, "200.59")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js
index ec4c578d2..f37712cf3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-14.js
@@ -9,21 +9,9 @@ description: >
+/-Infinity
---*/
-var objOne = {
- 0: true,
- 1: true,
- length: "Infinity"
-};
-var objTwo = {
- 0: true,
- 1: true,
- length: "+Infinity"
-};
-var objThree = {
- 0: true,
- 1: true,
- length: "-Infinity"
-};
+ var objOne = { 0: true, 1: true, length: "Infinity" };
+ var objTwo = { 0: true, 1: true, length: "+Infinity" };
+ var objThree = { 0: true, 1: true, length: "-Infinity" };
assert.sameValue(Array.prototype.indexOf.call(objOne, true), 0, 'Array.prototype.indexOf.call(objOne, true)');
assert.sameValue(Array.prototype.indexOf.call(objTwo, true), 0, 'Array.prototype.indexOf.call(objTwo, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js
index 2bf0dd8b2..e35a97c2c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-15.js
@@ -9,11 +9,7 @@ description: >
exponential number
---*/
-var obj = {
- 1: true,
- 2: "2E0",
- length: "2E0"
-};
+ var obj = { 1: true, 2: "2E0", length: "2E0" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "2E0"), -1, 'Array.prototype.indexOf.call(obj, "2E0")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js
index c3cd2c458..adc6ff83a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-16.js
@@ -9,11 +9,7 @@ description: >
number
---*/
-var obj = {
- 10: true,
- 11: "0x00B",
- length: "0x00B"
-};
+ var obj = { 10: true, 11: "0x00B", length: "0x00B" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 10, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "0x00B"), -1, 'Array.prototype.indexOf.call(obj, "0x00B")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js
index 66bb812c3..3f5d9a173 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-17.js
@@ -9,11 +9,7 @@ description: >
with leading zeros
---*/
-var obj = {
- 1: true,
- 2: "0002.0",
- length: "0002.0"
-};
+ var obj = { 1: true, 2: "0002.0", length: "0002.0" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, "0002.0"), -1, 'Array.prototype.indexOf.call(obj, "0002.0")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js
index 382df40af..71c052c5b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-18.js
@@ -9,10 +9,6 @@ description: >
convert to a number
---*/
-var obj = {
- 0: true,
- 100: true,
- length: "one"
-};
+ var obj = { 0: true, 100: true, length: "one" };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js
index b770f0577..17a3c545a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-19.js
@@ -9,22 +9,22 @@ description: >
an own toString method.
---*/
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-var obj = {
- 1: true,
- 2: 2,
+ var obj = {
+ 1: true,
+ 2: 2,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js
index a645ce3b0..8cfa825b8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-2.js
@@ -9,11 +9,7 @@ description: >
(value is true)
---*/
-var obj = {
- 0: 0,
- 1: 1,
- length: true
-};
+ var obj = { 0: 0, 1: 1, length: true };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
assert.sameValue(Array.prototype.indexOf.call(obj, 1), -1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js
index 6c9c56ff2..3479154f0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-20.js
@@ -9,16 +9,16 @@ description: >
an own valueOf method.
---*/
-//valueOf method will be invoked first, since hint is Number
-var obj = {
- 1: true,
- 2: 2,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ //valueOf method will be invoked first, since hint is Number
+ var obj = {
+ 1: true,
+ 2: 2,
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, 2), -1, 'Array.prototype.indexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js
index f1de649c8..a9ad676ad 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-21.js
@@ -10,23 +10,23 @@ description: >
returns a string
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- 1: true,
- length: {
- toString: function() {
- toStringAccessed = true;
- return '2';
- },
+ var obj = {
+ 1: true,
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js
index ad4324128..5cb92837c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-22.js
@@ -10,25 +10,25 @@ description: >
primitive values
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- length: {
- toString: function() {
- toStringAccessed = true;
- return {};
- },
+ var obj = {
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(obj);
+ Array.prototype.indexOf.call(obj);
});
assert(toStringAccessed, 'toStringAccessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js
index a87a044d5..5b30d00cf 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-23.js
@@ -10,29 +10,29 @@ description: >
methods
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return 2;
-};
+ var child = new Con();
+ child.toString = function () {
+ toStringAccessed = true;
+ return 2;
+ };
-var obj = {
- 1: true,
- length: child
-};
+ var obj = {
+ 1: true,
+ length: child
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js
index 109eca9ec..539f8d669 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-24.js
@@ -9,11 +9,7 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-var obj = {
- 122: true,
- 123: false,
- length: 123.321
-}; //length will be 123 finally
+ var obj = { 122: true, 123: false, length: 123.321 }; //length will be 123 finally
assert.sameValue(Array.prototype.indexOf.call(obj, true), 122, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js
index d1c35a485..4e275b17f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-25.js
@@ -9,11 +9,7 @@ description: >
non-integer
---*/
-var obj = {
- 1: true,
- 2: false,
- length: -4294967294.5
-}; //length will be 0 finally
+ var obj = { 1: true, 2: false, length: -4294967294.5 }; //length will be 0 finally
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js
index b6f651f69..62702eed7 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-28.js
@@ -9,12 +9,12 @@ description: >
(2^32)
---*/
-var targetObj = {};
-var obj = {
- 0: targetObj,
- 4294967294: targetObj,
- 4294967295: targetObj,
- length: 4294967296
-};
+ var targetObj = {};
+ var obj = {
+ 0: targetObj,
+ 4294967294: targetObj,
+ 4294967295: targetObj,
+ length: 4294967296
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), 0, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js
index 41298b8a3..23bb38ae7 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-29.js
@@ -9,12 +9,12 @@ description: >
(2^32 + 1)
---*/
-var targetObj = {};
-var obj = {
- 0: targetObj,
- 1: 4294967297,
- length: 4294967297
-};
+ var targetObj = {};
+ var obj = {
+ 0: targetObj,
+ 1: 4294967297,
+ length: 4294967297
+ };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), 0, 'Array.prototype.indexOf.call(obj, targetObj)');
assert.sameValue(Array.prototype.indexOf.call(obj, 4294967297), 1, 'Array.prototype.indexOf.call(obj, 4294967297)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js
index 2db8c77fc..83c239e17 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-3.js
@@ -9,9 +9,6 @@ description: >
0)
---*/
-var obj = {
- 0: true,
- length: 0
-};
+ var obj = { 0: true, length: 0 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js
index c2f4f22c8..e2dc4190f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-4.js
@@ -9,9 +9,6 @@ description: >
+0)
---*/
-var obj = {
- 0: true,
- length: +0
-};
+ var obj = { 0: true, length: +0 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js
index 4ca356c5f..6fccac875 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-5.js
@@ -9,9 +9,6 @@ description: >
-0)
---*/
-var obj = {
- 0: true,
- length: -0
-};
+ var obj = { 0: true, length: -0 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js
index 841c6b02e..50cc7c262 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-6.js
@@ -9,11 +9,7 @@ description: >
positive)
---*/
-var obj = {
- 3: true,
- 4: false,
- length: 4
-};
+ var obj = { 3: true, 4: false, length: 4 };
assert.sameValue(Array.prototype.indexOf.call(obj, true), 3, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js
index bbc47c981..1ff3602c0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-7.js
@@ -9,11 +9,7 @@ description: >
negative)
---*/
-var obj = {
- 4: true,
- 5: false,
- length: 5 - Math.pow(2, 32)
-};
+ var obj = { 4: true, 5: false, length: 5 - Math.pow(2, 32) };
assert.sameValue(Array.prototype.indexOf.call(obj, true), -1, 'Array.prototype.indexOf.call(obj, true)');
assert.sameValue(Array.prototype.indexOf.call(obj, false), -1, 'Array.prototype.indexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js
index b7ffedc0c..c7873e9ee 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-8.js
@@ -9,9 +9,6 @@ description: >
Infinity)
---*/
-var obj = {
- 0: 0,
- length: Infinity
-};
+ var obj = { 0: 0, length: Infinity };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js
index 00fafbc74..faf4a227c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-3-9.js
@@ -9,9 +9,6 @@ description: >
-Infinity)
---*/
-var obj = {
- 0: 0,
- length: -Infinity
-};
+ var obj = { 0: 0, length: -Infinity };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), -1, 'Array.prototype.indexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js
index 7f753d785..5b6a62eb9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-1.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.14-4-1
description: Array.prototype.indexOf returns -1 if 'length' is 0 (empty array)
---*/
-var i = [].indexOf(42);
+ var i = [].indexOf(42);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js
index 47a90a228..6af3e10a8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-10.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.14-4-10
description: Array.prototype.indexOf - 'length' is a number of value -6e-1
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: -6e-1
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: -6e-1 };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js
index 94da77848..3410cb85c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-11.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.14-4-11
description: Array.prototype.indexOf - 'length' is an empty string
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: ""
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: "" };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js
index e39faf7b1..485bcf04e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-2.js
@@ -9,9 +9,7 @@ description: >
overridden to null (type conversion))
---*/
-var i = Array.prototype.indexOf.call({
- length: null
-}, 1);
+ var i = Array.prototype.indexOf.call({length: null}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js
index ccca42340..535a46c8e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-3.js
@@ -9,9 +9,7 @@ description: >
overridden to false (type conversion))
---*/
-var i = Array.prototype.indexOf.call({
- length: false
-}, 1);
+ var i = Array.prototype.indexOf.call({length: false}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js
index d665e97c1..c614ca938 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-4.js
@@ -9,9 +9,7 @@ description: >
'array' with length 0 )
---*/
-var i = Array.prototype.lastIndexOf.call({
- length: 0
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: 0}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js
index 7cd825ba8..595122579 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-5.js
@@ -9,9 +9,7 @@ description: >
overridden to '0' (type conversion))
---*/
-var i = Array.prototype.indexOf.call({
- length: '0'
-}, 1);
+ var i = Array.prototype.indexOf.call({length: '0'}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js
index bdb5f01fa..365da0c37 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-6.js
@@ -9,13 +9,7 @@ description: >
Array, length overridden with obj with valueOf)
---*/
-var i = Array.prototype.indexOf.call({
- length: {
- valueOf: function() {
- return 0;
- }
- }
-}, 1);
+ var i = Array.prototype.indexOf.call({length: { valueOf: function () { return 0;}}}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js
index c6c14d773..ed4cf9894 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-7.js
@@ -9,18 +9,12 @@ description: >
object overridden with obj w/o valueOf (toString))
---*/
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var i = Array.prototype.indexOf.call({
- length: {
- toString: function() {
- return '0';
- }
- }
-}, 1);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var i = Array.prototype.indexOf.call({length: { toString: function () { return '0';}}}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js
index 2c863ea49..04ad4c7fb 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-8.js
@@ -9,22 +9,20 @@ description: >
empty array)
---*/
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-var i = Array.prototype.indexOf.call({
- length: []
-}, 1);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+ var i = Array.prototype.indexOf.call({length: [ ]}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js
index b64c1213a..e90ce2e4c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-4-9.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.14-4-9
description: Array.prototype.indexOf - 'length' is a number of value 0.1
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: 0.1
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: 0.1 };
assert.sameValue(Array.prototype.indexOf.call(obj, targetObj), -1, 'Array.prototype.indexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js
index bfb7c07cd..146456dba 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-1
description: Array.prototype.indexOf when fromIndex is string
---*/
-var a = [1, 2, 1, 2, 1, 2];
+ var a = [1,2,1,2,1,2];
-assert.sameValue(a.indexOf(2, "2"), 3, '"2" resolves to 2');
-assert.sameValue(a.indexOf(2, "one"), 1, '"one" resolves to 0');
+assert.sameValue(a.indexOf(2,"2"), 3, '"2" resolves to 2');
+assert.sameValue(a.indexOf(2,"one"), 1, '"one" resolves to 0');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js
index 4ec2ce2a0..7c006a5d0 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-10.js
@@ -9,7 +9,7 @@ description: >
is positive number)
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, 2), -1, '[0, targetObj, 2].indexOf(targetObj, 2)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, 2), 2, '[0, 1, targetObj].indexOf(targetObj, 2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js
index 873dcea19..e8dccbd1d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-11.js
@@ -9,7 +9,7 @@ description: >
is negative number)
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, -1), -1, '[0, targetObj, 2].indexOf(targetObj, -1)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, -1), 2, '[0, 1, targetObj].indexOf(targetObj, -1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js
index ef4baf22e..dbdc234eb 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-12.js
@@ -9,7 +9,7 @@ description: >
is Infinity)
---*/
-var arr = [];
-arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
+ var arr = [];
+ arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
assert.sameValue(arr.indexOf(true, Infinity), -1, 'arr.indexOf(true, Infinity)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js
index 6f9afde36..68e8cbe5f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-16.js
@@ -9,7 +9,7 @@ description: >
containing Infinity
---*/
-var arr = [];
-arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
+ var arr = [];
+ arr[Math.pow(2, 32) - 2] = true; //length is the max value of Uint type
assert.sameValue(arr.indexOf(true, "Infinity"), -1, 'arr.indexOf(true, "Infinity")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js
index 66bfabd2f..7729f74b5 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-18.js
@@ -9,7 +9,7 @@ description: >
containing an exponential number
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "3E0"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "3E0")');
assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "3E0"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "3E0")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js
index 123b1304f..ef2936fb7 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-19.js
@@ -9,7 +9,7 @@ description: >
containing a hex number
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "0x0003"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "0x0003")');
assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "0x0003"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "0x0003")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js
index 092e4127f..6fbcc5ced 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-2.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-5-2
description: Array.prototype.indexOf when fromIndex is floating point number
---*/
-var a = new Array(1, 2, 3);
+ var a = new Array(1,2,3);
-assert.sameValue(a.indexOf(3, 0.49), 2, '0.49 resolves to 0');
-assert.sameValue(a.indexOf(1, 0.51), 0, '0.51 resolves to 0');
-assert.sameValue(a.indexOf(1, 1.51), -1, '1.51 resolves to 1');
+assert.sameValue(a.indexOf(3,0.49), 2, '0.49 resolves to 0');
+assert.sameValue(a.indexOf(1,0.51), 0, '0.51 resolves to 0');
+assert.sameValue(a.indexOf(1,1.51), -1, '1.51 resolves to 1');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js
index 106b630ba..0471343e2 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-20.js
@@ -9,7 +9,7 @@ description: >
containing a number with leading zeros
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, 1, targetObj, 3, 4].indexOf(targetObj, "0003.10"), -1, '[0, 1, targetObj, 3, 4].indexOf(targetObj, "0003.10")');
assert.sameValue([0, 1, 2, targetObj, 4].indexOf(targetObj, "0003.10"), 3, '[0, 1, 2, targetObj, 4].indexOf(targetObj, "0003.10")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js
index 887de235a..05fbacd4d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-21.js
@@ -9,15 +9,15 @@ description: >
has an own toString method
---*/
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var fromIndex = {
- toString: function() {
- return '1';
- }
-};
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var fromIndex = {
+ toString: function () {
+ return '1';
+ }
+ };
assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js
index e1ed13197..21bb6b03a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-22.js
@@ -9,11 +9,11 @@ description: >
has an own valueOf method
---*/
-var fromIndex = {
- valueOf: function() {
- return 1;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ return 1;
+ }
+ };
assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js
index 8bfad2363..64f186fc8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-23.js
@@ -10,20 +10,20 @@ description: >
method that returns a string
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var fromIndex = {
- toString: function() {
- toStringAccessed = true;
- return '1';
- },
+ var fromIndex = {
+ toString: function () {
+ toStringAccessed = true;
+ return '1';
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ };
assert.sameValue([0, true].indexOf(true, fromIndex), 1, '[0, true].indexOf(true, fromIndex)');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js
index 881197259..3f83428a2 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-24.js
@@ -10,22 +10,22 @@ description: >
don�t return primitive values
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
-var fromIndex = {
- toString: function() {
- toStringAccessed = true;
- return {};
- },
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
+ var fromIndex = {
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ };
assert.throws(TypeError, function() {
- [0, true].indexOf(true, fromIndex);
+ [0, true].indexOf(true, fromIndex);
});
assert(toStringAccessed, 'toStringAccessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js
index f3943fc49..a8139b751 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-25.js
@@ -10,24 +10,24 @@ description: >
valueOf methods
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 1;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 1;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return 2;
-};
+ var child = new Con();
+ child.toString = function () {
+ toStringAccessed = true;
+ return 2;
+ };
assert.sameValue([0, true].indexOf(true, child), 1, '[0, true].indexOf(true, child)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js
index 43307ad73..6c66928ce 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-26.js
@@ -9,30 +9,30 @@ description: >
visible when an exception occurs
---*/
-var stepTwoOccurs = false;
-var stepFiveOccurs = false;
+ var stepTwoOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- stepTwoOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ stepTwoOccurs = true;
+ if (stepFiveOccurs) {
+ throw new Error("Step 5 occurred out of order");
+ }
+ return 20;
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
-Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
assert(stepTwoOccurs, 'stepTwoOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js
index ec03ca839..0207afac1 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-27.js
@@ -9,34 +9,34 @@ description: >
visible when an exception occurs
---*/
-var stepThreeOccurs = false;
-var stepFiveOccurs = false;
+ var stepThreeOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- valueOf: function() {
- stepThreeOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ valueOf: function () {
+ stepThreeOccurs = true;
+ if (stepFiveOccurs) {
+ throw new Error("Step 5 occurred out of order");
+ }
+ return 20;
+ }
+ };
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
-Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
assert(stepThreeOccurs, 'stepThreeOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js
index 71adbb347..9e8383545 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-28.js
@@ -9,14 +9,14 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var stepFiveOccurs = false;
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(undefined, undefined, fromIndex);
+ Array.prototype.indexOf.call(undefined, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js
index 373bbc7e5..30381433b 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-29.js
@@ -9,23 +9,23 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new RangeError();
- },
- configurable: true
-});
+ var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new RangeError();
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(RangeError, function() {
- Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js
index f9ec42cc8..9030d5314 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-3
description: Array.prototype.indexOf when fromIndex is boolean
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
-assert.sameValue(a.indexOf(1, true), -1, 'true resolves to 1');
-assert.sameValue(a.indexOf(1, false), 0, 'false resolves to 0');
+assert.sameValue(a.indexOf(1,true), -1, 'true resolves to 1');
+assert.sameValue(a.indexOf(1,false), 0, 'false resolves to 0');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js
index d3eac966c..9a229e976 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-30.js
@@ -9,27 +9,27 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- valueOf: function() {
- throw new TypeError();
- }
- };
- },
- configurable: true
-});
+ var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ valueOf: function () {
+ throw new TypeError();
+ }
+ };
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(obj, undefined, fromIndex);
+ Array.prototype.indexOf.call(obj, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js
index 64442d0db..9a7f1d3ff 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-31.js
@@ -9,7 +9,7 @@ description: >
verify truncation occurs in the proper direction
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, 2.5), -1, '[0, targetObj, 2].indexOf(targetObj, 2.5)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, 2.5), 2, '[0, 1, targetObj].indexOf(targetObj, 2.5)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js
index a11186d51..df4812b78 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-32.js
@@ -9,7 +9,7 @@ description: >
verify truncation occurs in the proper direction
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, 2].indexOf(targetObj, -1.5), -1, '[0, targetObj, 2].indexOf(targetObj, -1.5)');
assert.sameValue([0, 1, targetObj].indexOf(targetObj, -1.5), 2, '[0, 1, targetObj].indexOf(targetObj, -1.5)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js
index 4230ef2bc..3611b1799 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-4
description: Array.prototype.indexOf returns 0 if fromIndex is 'undefined'
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
// undefined resolves to 0
-assert.sameValue(a.indexOf(1, undefined), 0, 'a.indexOf(1,undefined)');
+assert.sameValue(a.indexOf(1,undefined), 0, 'a.indexOf(1,undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js
index 4cd4418d5..9056a5fe9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.14-5-5
description: Array.prototype.indexOf returns 0 if fromIndex is null
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
// null resolves to 0
-assert.sameValue(a.indexOf(1, null), 0, 'a.indexOf(1,null)');
+assert.sameValue(a.indexOf(1,null), 0, 'a.indexOf(1,null)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js
index 2ea05b825..69610b347 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-5-6.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-5-6
description: Array.prototype.indexOf - 'fromIndex' isn't passed
---*/
-var arr = [0, 1, 2, 3, 4];
-//'fromIndex' will be set as 0 if not passed by default
+ var arr = [0, 1, 2, 3, 4];
+ //'fromIndex' will be set as 0 if not passed by default
assert.sameValue(arr.indexOf(0), arr.indexOf(0, 0), 'arr.indexOf(0)');
assert.sameValue(arr.indexOf(2), arr.indexOf(2, 0), 'arr.indexOf(2)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js
index 1309ad967..f2da76943 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-6-1.js
@@ -9,8 +9,8 @@ description: >
Array length
---*/
-var a = [1, 2, 3];
+ var a = [1,2,3];
-assert.sameValue(a.indexOf(1, 5), -1, 'a.indexOf(1,5)');
-assert.sameValue(a.indexOf(1, 3), -1, 'a.indexOf(1,3)');
-assert.sameValue([].indexOf(1, 0), -1, '[ ].indexOf(1,0)');
+assert.sameValue(a.indexOf(1,5), -1, 'a.indexOf(1,5)');
+assert.sameValue(a.indexOf(1,3), -1, 'a.indexOf(1,3)');
+assert.sameValue([ ].indexOf(1,0), -1, '[ ].indexOf(1,0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js
index 4531f8051..57d4f191d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-8-1.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.14-8-1
description: Array.prototype.indexOf with negative fromIndex
---*/
-var a = new Array(1, 2, 3);
+ var a = new Array(1,2,3);
-assert.sameValue(a.indexOf(2, -1), -1, 'a.indexOf(2,-1)');
-assert.sameValue(a.indexOf(2, -2), 1, 'a.indexOf(2,-2)');
-assert.sameValue(a.indexOf(1, -3), 0, 'a.indexOf(1,-3)');
-assert.sameValue(a.indexOf(1, -5.3), 0, 'a.indexOf(1,-5.3)');
+assert.sameValue(a.indexOf(2,-1), -1, 'a.indexOf(2,-1)');
+assert.sameValue(a.indexOf(2,-2), 1, 'a.indexOf(2,-2)');
+assert.sameValue(a.indexOf(1,-3), 0, 'a.indexOf(1,-3)');
+assert.sameValue(a.indexOf(1,-5.3), 0, 'a.indexOf(1,-5.3)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js
index 91a596078..94125fa81 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-1.js
@@ -7,13 +7,9 @@ es5id: 15.4.4.14-9-1
description: Array.prototype.indexOf must return correct index (boolean)
---*/
-var obj = {
- toString: function() {
- return true
- }
-};
-var _false = false;
-var a = [obj, "true", undefined, 0, _false, null, 1, "str", 0, 1, true, false, true, false];
+ var obj = {toString:function (){return true}};
+ var _false = false;
+ var a = [obj,"true", undefined,0,_false,null,1,"str",0,1,true,false,true,false];
-assert.sameValue(a.indexOf(true), 10, 'a[10]=true');
-assert.sameValue(a.indexOf(false), 4, 'a[4] =_false');
+ assert.sameValue(a.indexOf(true), 10, 'a[10]=true');
+ assert.sameValue(a.indexOf(false), 4, 'a[4] =_false');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js
index 92ebaa80a..4b3ec82c6 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-10.js
@@ -10,11 +10,7 @@ es5id: 15.4.4.14-9-10
description: Array.prototype.indexOf must return correct index (NaN)
---*/
-var _NaN = NaN;
-var a = new Array("NaN", undefined, 0, false, null, {
- toString: function() {
- return NaN
- }
-}, "false", _NaN, NaN);
+ var _NaN = NaN;
+ var a = new Array("NaN",undefined,0,false,null,{toString:function (){return NaN}},"false",_NaN,NaN);
assert.sameValue(a.indexOf(NaN), -1, 'NaN is equal to nothing, including itself.');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js
index 77108424d..cf1aac541 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-11.js
@@ -9,14 +9,14 @@ description: >
adding elements to the array during iteration
---*/
-var arr = [20];
+ var arr = [20];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr[1] = 1;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr[1] = 1;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(1), -1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js
index 410a7c0ef..fcce013d2 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-2.js
@@ -7,16 +7,12 @@ es5id: 15.4.4.14-9-2
description: Array.prototype.indexOf must return correct index (Number)
---*/
-var obj = {
- toString: function() {
- return 0
- }
-};
-var one = 1;
-var _float = -(4 / 3);
-var a = new Array(false, undefined, null, "0", obj, -1.3333333333333, "str", -0, true, +0, one, 1, 0, false, _float, -(4 / 3));
+ var obj = {toString:function (){return 0}};
+ var one = 1;
+ var _float = -(4/3);
+ var a = new Array(false,undefined,null,"0",obj,-1.3333333333333, "str",-0,true,+0, one, 1,0, false, _float, -(4/3));
-assert.sameValue(a.indexOf(-(4 / 3)), 14, 'a[14]=_float===-(4/3)');
+assert.sameValue(a.indexOf(-(4/3)), 14, 'a[14]=_float===-(4/3)');
assert.sameValue(a.indexOf(0), 7, 'a[7] = +0, 0===+0');
assert.sameValue(a.indexOf(-0), 7, 'a[7] = +0, -0===+0');
assert.sameValue(a.indexOf(1), 10, 'a[10] =one=== 1');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js
index 8b4ff007c..3c83a98d9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-3.js
@@ -7,12 +7,8 @@ es5id: 15.4.4.14-9-3
description: Array.prototype.indexOf must return correct index(string)
---*/
-var obj = {
- toString: function() {
- return "false"
- }
-};
-var szFalse = "false";
-var a = new Array("false1", undefined, 0, false, null, 1, obj, 0, szFalse, "false");
+ var obj = {toString:function (){return "false"}};
+ var szFalse = "false";
+ var a = new Array("false1",undefined,0,false,null,1,obj,0,szFalse, "false");
assert.sameValue(a.indexOf("false"), 8, 'a[8]=szFalse');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js
index 697f91967..d0b3a3a3e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-4.js
@@ -7,13 +7,9 @@ es5id: 15.4.4.14-9-4
description: Array.prototype.indexOf must return correct index(undefined)
---*/
-var obj = {
- toString: function() {
- return undefined;
- }
-};
-var _undefined1 = undefined;
-var _undefined2;
-var a = new Array(true, 0, false, null, 1, "undefined", obj, 1, _undefined2, _undefined1, undefined);
+ var obj = {toString:function (){return undefined;}};
+ var _undefined1 = undefined;
+ var _undefined2;
+ var a = new Array(true,0,false,null,1,"undefined",obj,1,_undefined2,_undefined1,undefined);
assert.sameValue(a.indexOf(undefined), 8, 'a[8]=_undefined2');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js
index 8537c3ac3..3a31b1477 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-5.js
@@ -7,21 +7,9 @@ es5id: 15.4.4.14-9-5
description: Array.prototype.indexOf must return correct index (Object)
---*/
-var obj1 = {
- toString: function() {
- return "false"
- }
-};
-var obj2 = {
- toString: function() {
- return "false"
- }
-};
-var obj3 = obj1;
-var a = new Array(false, undefined, 0, false, null, {
- toString: function() {
- return "false"
- }
-}, "false", obj2, obj1, obj3);
+ var obj1 = {toString:function (){return "false"}};
+ var obj2 = {toString:function (){return "false"}};
+ var obj3 = obj1;
+ var a = new Array(false,undefined,0,false,null,{toString:function (){return "false"}},"false",obj2,obj1,obj3);
assert.sameValue(a.indexOf(obj3), 8, 'a[8] = obj1');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js
index cb657505b..adb3280e8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-6.js
@@ -7,12 +7,8 @@ es5id: 15.4.4.14-9-6
description: Array.prototype.indexOf must return correct index(null)
---*/
-var obj = {
- toString: function() {
- return null
- }
-};
-var _null = null;
-var a = new Array(true, undefined, 0, false, _null, 1, "str", 0, 1, obj, true, false, null);
+ var obj = {toString:function (){return null}};
+ var _null = null;
+ var a = new Array(true,undefined,0,false,_null,1,"str",0,1,obj,true,false,null);
assert.sameValue(a.indexOf(null), 4, 'a[4]=_null');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js
index 0a8028b4e..33bf64933 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-7.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-9-7
description: Array.prototype.indexOf must return correct index (self reference)
---*/
-var a = new Array(0, 1, 2, 3);
-a[2] = a;
+ var a = new Array(0,1,2,3);
+ a[2] = a;
assert.sameValue(a.indexOf(a), 2, 'a.indexOf(a)');
assert.sameValue(a.indexOf(3), 3, 'a.indexOf(3)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js
index 7e07ce058..86889e437 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-8.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.14-9-8
description: Array.prototype.indexOf must return correct index (Array)
---*/
-var b = new Array("0,1");
-var a = new Array(0, b, "0,1", 3);
+ var b = new Array("0,1");
+ var a = new Array(0,b,"0,1",3);
assert.sameValue(a.indexOf(b.toString()), 2, 'a.indexOf(b.toString())');
assert.sameValue(a.indexOf("0,1"), 2, 'a.indexOf("0,1")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js
index 800f568bf..82fc8113c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-9.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.14-9-9
description: Array.prototype.indexOf must return correct index (Sparse Array)
---*/
-var a = new Array(0, 1);
-a[4294967294] = 2; // 2^32-2 - is max array element
-a[4294967295] = 3; // 2^32-1 added as non-array element property
-a[4294967296] = 4; // 2^32 added as non-array element property
-a[4294967297] = 5; // 2^32+1 added as non-array element property
+ var a = new Array(0,1);
+ a[4294967294] = 2; // 2^32-2 - is max array element
+ a[4294967295] = 3; // 2^32-1 added as non-array element property
+ a[4294967296] = 4; // 2^32 added as non-array element property
+ a[4294967297] = 5; // 2^32+1 added as non-array element property
-// start searching near the end so in case implementation actually tries to test all missing elements!!
+ // start searching near the end so in case implementation actually tries to test all missing elements!!
-assert.sameValue(a.indexOf(2, 4294967290), 4294967294, 'a.indexOf(2,4294967290 )');
-assert.sameValue(a.indexOf(3, 4294967290), -1, 'a.indexOf(3,4294967290)');
-assert.sameValue(a.indexOf(4, 4294967290), -1, 'a.indexOf(4,4294967290)');
-assert.sameValue(a.indexOf(5, 4294967290), -1, 'a.indexOf(5,4294967290)');
+assert.sameValue(a.indexOf(2,4294967290 ), 4294967294, 'a.indexOf(2,4294967290 )');
+assert.sameValue(a.indexOf(3,4294967290), -1, 'a.indexOf(3,4294967290)');
+assert.sameValue(a.indexOf(4,4294967290), -1, 'a.indexOf(4,4294967290)');
+assert.sameValue(a.indexOf(5,4294967290), -1, 'a.indexOf(5,4294967290)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js
index 043314c60..0d17a2be4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-1.js
@@ -9,14 +9,14 @@ description: >
here
---*/
-var arr = {};
+ var arr = { };
-Object.defineProperty(arr, "length", {
- get: function() {
- arr[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ arr[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, "length"), 2, 'Array.prototype.indexOf.call(arr, "length")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js
index 4a2797e62..ff6b0a9c8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-10.js
@@ -9,19 +9,19 @@ description: >
after current position are visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(6.99), 1, 'arr.indexOf(6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js
index 65e504325..6e9587d5a 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-11.js
@@ -9,23 +9,21 @@ description: >
property not to be visited on an Array-like object
---*/
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), -1, 'Array.prototype.indexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js
index d07f4a710..172dd1133 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-12.js
@@ -9,21 +9,21 @@ description: >
property not to be visited on an Array
---*/
-var arr = [1, 2];
+ var arr = [1, 2];
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("6.99"), -1, 'arr.indexOf("6.99")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js
index f45f555cf..2390e6e7f 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-13.js
@@ -9,19 +9,16 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-var arr = {
- 2: 2,
- length: 20
-};
+ var arr = { 2: 2, length: 20 };
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.indexOf.call(arr, 1), -1, 'Array.prototype.indexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js
index 216e4da0b..81cbe7b98 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-14.js
@@ -9,16 +9,16 @@ description: >
prototype index property not to be visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.indexOf(1), -1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js
index 5c5be6dc9..c7c60d7c4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-15.js
@@ -10,21 +10,16 @@ description: >
Array-like object
---*/
-var arr = {
- 0: 0,
- 1: 111,
- 2: 2,
- length: 10
-};
+ var arr = { 0: 0, 1: 111, 2: 2, length: 10 };
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.indexOf.call(arr, 1), 1, 'Array.prototype.indexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js
index ed4072719..707207440 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-16.js
@@ -9,16 +9,16 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-var arr = [0, 111, 2];
+ var arr = [0, 111, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js
index 8309a3b86..74a6eddb4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-17.js
@@ -9,14 +9,14 @@ description: >
property not to be visited
---*/
-var arr = [0, 1, 2, "last"];
+ var arr = [0, 1, 2, "last"];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("last"), -1, 'arr.indexOf("last")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js
index 1d728bce1..f1e2fa4f4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-18.js
@@ -9,21 +9,21 @@ description: >
prototype property causes prototype index property to be visited
---*/
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("prototype"), 2, 'arr.indexOf("prototype")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js
index 0fab8d12b..b30be5fda 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-19.js
@@ -10,22 +10,22 @@ description: >
flags: [noStrict]
---*/
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf("unconfigurable"), 2, 'arr.indexOf("unconfigurable")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js
index fac0434b9..a0e8b8295 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-2.js
@@ -9,17 +9,15 @@ description: >
here on an Array-like object
---*/
-var arr = {
- length: 30
-};
-var targetObj = function() {};
+ var arr = { length: 30 };
+ var targetObj = function () { };
-var fromIndex = {
- valueOf: function() {
- arr[4] = targetObj;
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ arr[4] = targetObj;
+ return 3;
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(arr, targetObj, fromIndex), 4, 'Array.prototype.indexOf.call(arr, targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js
index d7954ea90..5ac6827ee 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-3.js
@@ -9,15 +9,15 @@ description: >
here on an Array
---*/
-var arr = [];
-arr.length = 30;
-var targetObj = function() {};
+ var arr = [];
+ arr.length = 30;
+ var targetObj = function () { };
-var fromIndex = {
- valueOf: function() {
- arr[4] = targetObj;
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ arr[4] = targetObj;
+ return 3;
+ }
+ };
assert.sameValue(arr.indexOf(targetObj, fromIndex), 4, 'arr.indexOf(targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js
index 1340a1d67..8a5e756c5 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-4.js
@@ -9,16 +9,14 @@ description: >
here
---*/
-var arr = {
- 2: 6.99
-};
+ var arr = { 2: 6.99 };
-Object.defineProperty(arr, "length", {
- get: function() {
- delete arr[2];
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ delete arr[2];
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), -1, 'Array.prototype.indexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js
index 926a37aeb..255c327a3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-5.js
@@ -9,16 +9,13 @@ description: >
here on an Array-like object
---*/
-var arr = {
- 10: false,
- length: 30
-};
+ var arr = { 10: false, length: 30 };
-var fromIndex = {
- valueOf: function() {
- delete arr[10];
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ delete arr[10];
+ return 3;
+ }
+ };
assert.sameValue(Array.prototype.indexOf.call(arr, false, fromIndex), -1, 'Array.prototype.indexOf.call(arr, false, fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js
index 41e275c6c..e78f717c3 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-6.js
@@ -9,15 +9,15 @@ description: >
here on an Array
---*/
-var arr = [];
-arr[10] = "10";
-arr.length = 20;
+ var arr = [];
+ arr[10] = "10";
+ arr.length = 20;
-var fromIndex = {
- valueOf: function() {
- delete arr[10];
- return 3;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ delete arr[10];
+ return 3;
+ }
+ };
assert.sameValue(arr.indexOf("10", fromIndex), -1, 'arr.indexOf("10", fromIndex)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js
index 317816ab6..58e38614c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-7.js
@@ -9,21 +9,19 @@ description: >
current position are visited on an Array-like object
---*/
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 1), 1, 'Array.prototype.indexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js
index af3577d7d..aa43ed573 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-8.js
@@ -9,19 +9,19 @@ description: >
current position are visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js
index 22ea6154a..e36af343d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-a-9.js
@@ -9,21 +9,19 @@ description: >
after current position are visited on an Array-like object
---*/
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(arr, 6.99), 1, 'Array.prototype.indexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js
index 211c212cc..dc8bba867 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-1.js
@@ -9,12 +9,7 @@ description: >
property on an Array-like object
---*/
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
+ var obj = { 0: 0, 1: 1, 2: 2, length: 3 };
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js
index af735dd41..8cf69e48d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-10.js
@@ -9,29 +9,27 @@ description: >
property on an Array-like object
---*/
-var obj = {
- length: 3
-};
-Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var obj = { length: 3 };
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, 0), 0, 'Array.prototype.indexOf.call(obj, 0)');
assert.sameValue(Array.prototype.indexOf.call(obj, 1), 1, 'Array.prototype.indexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js
index d744fec56..0d1ca8e70 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-11.js
@@ -9,14 +9,14 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var arr = [];
+ var arr = [];
-Array.prototype[0] = false;
-Object.defineProperty(arr, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Array.prototype[0] = false;
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(true), 0, 'arr.indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js
index 77f337f6b..de13d9f38 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-12.js
@@ -10,16 +10,14 @@ description: >
Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.prototype[0] = false;
-Object.defineProperty(obj, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.prototype[0] = false;
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), 0, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js
index f260b91bf..27be95dc6 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-13.js
@@ -9,20 +9,20 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var arr = [];
+ var arr = [];
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(true), 0, 'arr.indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js
index b3133a5bc..265667e71 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-14.js
@@ -10,22 +10,20 @@ description: >
Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), 0, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js
index e9f5b47b7..44b2da7af 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-15.js
@@ -9,26 +9,26 @@ description: >
accessor property on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return 30;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return 30;
+ },
+ configurable: true
+ });
assert.sameValue([, , , ].indexOf(10), 0, '[, , , ].indexOf(10)');
assert.sameValue([, , , ].indexOf(20), 1, '[, , , ].indexOf(20)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js
index 8a8057ee9..754db8aad 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-16.js
@@ -9,33 +9,27 @@ description: >
accessor property on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "2", {
- get: function() {
- return 30;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "2", {
+ get: function () {
+ return 30;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, 10), 0, 'Array.prototype.indexOf.call({ length: 3 }, 10)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, 20), 1, 'Array.prototype.indexOf.call({ length: 3 }, 20)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, 30), 2, 'Array.prototype.indexOf.call({ length: 3 }, 30)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 10), 0, 'Array.prototype.indexOf.call({ length: 3 }, 10)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 20), 1, 'Array.prototype.indexOf.call({ length: 3 }, 20)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, 30), 2, 'Array.prototype.indexOf.call({ length: 3 }, 30)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js
index 9ffbbe16c..551e2a30e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-17.js
@@ -9,10 +9,10 @@ description: >
property without a get function on an Array
---*/
-var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ var arr = [];
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(undefined), 0, 'arr.indexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js
index e79db90e3..4701e3fd8 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-18.js
@@ -9,12 +9,10 @@ description: >
property without a get function on an Array-like object
---*/
-var obj = {
- length: 1
-};
-Object.defineProperty(obj, "0", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 1 };
+ Object.defineProperty(obj, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, undefined), 0, 'Array.prototype.indexOf.call(obj, undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js
index 2ded8363e..b640d8965 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-19.js
@@ -10,18 +10,18 @@ description: >
accessor property on an Array
---*/
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(undefined), 0, 'arr.indexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js
index 793084e9e..56508fe50 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-20.js
@@ -10,23 +10,23 @@ description: >
accessor property on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "0", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 1;
+ var child = new Con();
+ child.length = 1;
-Object.defineProperty(child, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(child, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(child, undefined), 0, 'Array.prototype.indexOf.call(child, undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js
index ffc933148..24144df08 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-21.js
@@ -9,9 +9,9 @@ description: >
accessor property without a get function on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue([, ].indexOf(undefined), 0, '[, ].indexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js
index f9fa4d41a..922d2e7ce 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-22.js
@@ -9,11 +9,9 @@ description: >
accessor property without a get function on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.indexOf.call({
- length: 1
-}, undefined), 0, 'Array.prototype.indexOf.call({ length: 1 }, undefined)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 1 }, undefined), 0, 'Array.prototype.indexOf.call({ length: 1 }, undefined)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js
index 4e5bb8b13..b2f3bc442 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-25.js
@@ -10,9 +10,9 @@ description: >
less than number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
- -1 === Array.prototype.indexOf.call(arguments, arguments[1]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
+ -1 === Array.prototype.indexOf.call(arguments, arguments[1]);
+ };
assert(func(true), 'func(true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js
index caa167d9d..330ea1966 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-26.js
@@ -10,10 +10,10 @@ description: >
to number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
- 1 === Array.prototype.indexOf.call(arguments, arguments[1]) &&
- -1 === Array.prototype.indexOf.call(arguments, arguments[2]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
+ 1 === Array.prototype.indexOf.call(arguments, arguments[1]) &&
+ -1 === Array.prototype.indexOf.call(arguments, arguments[2]);
+ };
assert(func(0, true), 'func(0, true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js
index 02017a929..5935f22ba 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-27.js
@@ -10,10 +10,10 @@ description: >
greater than number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
- 3 === Array.prototype.indexOf.call(arguments, arguments[3]) &&
- -1 === Array.prototype.indexOf.call(arguments, arguments[4]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.indexOf.call(arguments, arguments[0]) &&
+ 3 === Array.prototype.indexOf.call(arguments, arguments[3]) &&
+ -1 === Array.prototype.indexOf.call(arguments, arguments[4]);
+ };
assert(func(0, false, 0, true), 'func(0, false, 0, true) !== true');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js
index 2a13283be..dc9119d68 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-28.js
@@ -9,26 +9,26 @@ description: >
iterations on an Array
---*/
-var preIterVisible = false;
-var arr = [];
+ var preIterVisible = false;
+ var arr = [];
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return true;
- } else {
- return false;
- }
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(true), 1, 'arr.indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js
index 475817a8e..1c941586e 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-29.js
@@ -9,28 +9,26 @@ description: >
iterations on an Array-like object
---*/
-var preIterVisible = false;
-var obj = {
- length: 2
-};
+ var preIterVisible = false;
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return true;
- } else {
- return false;
- }
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.indexOf.call(obj, true), 1, 'Array.prototype.indexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js
index 84006e81e..1df5d9eb9 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-3.js
@@ -9,6 +9,6 @@ description: >
property that overrides an inherited data property on an Array
---*/
-Array.prototype[0] = false;
+ Array.prototype[0] = false;
assert.sameValue([true].indexOf(true), 0, '[true].indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js
index c2c8d1350..440a31448 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-30.js
@@ -9,24 +9,24 @@ description: >
exception on an Array
---*/
-var accessed = false;
-var arr = [];
+ var accessed = false;
+ var arr = [];
-Object.defineProperty(arr, "0", {
- get: function() {
- throw new TypeError();
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ throw new TypeError();
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- accessed = true;
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ accessed = true;
+ return true;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- arr.indexOf(true);
+ arr.indexOf(true);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js
index 8977a9893..9cae879bc 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-31.js
@@ -9,26 +9,24 @@ description: >
exception on an Array-like object
---*/
-var accessed = false;
-var obj = {
- length: 2
-};
+ var accessed = false;
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- throw new TypeError();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ throw new TypeError();
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- accessed = true;
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ accessed = true;
+ return true;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.indexOf.call(obj, true);
+ Array.prototype.indexOf.call(obj, true);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js
index 892068426..171ced904 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-4.js
@@ -10,10 +10,6 @@ description: >
Array-like object
---*/
-Object.prototype[0] = false;
+ Object.prototype[0] = false;
-assert.sameValue(Array.prototype.indexOf.call({
- 0: true,
- 1: 1,
- length: 2
-}, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
+assert.sameValue(Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js
index 1d4332e74..24a407691 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-5.js
@@ -9,11 +9,11 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
assert.sameValue([true].indexOf(true), 0, '[true].indexOf(true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js
index 4661515c4..22e410e7d 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-6.js
@@ -10,15 +10,11 @@ description: >
Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.indexOf.call({
- 0: true,
- 1: 1,
- length: 2
-}, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
+assert.sameValue(Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.indexOf.call({ 0: true, 1: 1, length: 2 }, true)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js
index 6344f1784..9382abf00 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-7.js
@@ -9,9 +9,9 @@ description: >
data property on an Array
---*/
-Array.prototype[0] = true;
-Array.prototype[1] = false;
-Array.prototype[2] = "true";
+ Array.prototype[0] = true;
+ Array.prototype[1] = false;
+ Array.prototype[2] = "true";
assert.sameValue([, , , ].indexOf(true), 0, '[, , , ].indexOf(true)');
assert.sameValue([, , , ].indexOf(false), 1, '[, , , ].indexOf(false)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js
index 7ac1d9810..52e280f1c 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-8.js
@@ -9,16 +9,10 @@ description: >
data property on an Array-like object
---*/
-Object.prototype[0] = true;
-Object.prototype[1] = false;
-Object.prototype[2] = "true";
+ Object.prototype[0] = true;
+ Object.prototype[1] = false;
+ Object.prototype[2] = "true";
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)');
-assert.sameValue(Array.prototype.indexOf.call({
- length: 3
-}, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, true), 0, 'Array.prototype.indexOf.call({ length: 3 }, true)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, false), 1, 'Array.prototype.indexOf.call({ length: 3 }, false)');
+assert.sameValue(Array.prototype.indexOf.call({ length: 3 }, "true"), 2, 'Array.prototype.indexOf.call({ length: 3 }, "true")');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js
index 007bbcc02..ed295d201 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-i-9.js
@@ -9,27 +9,27 @@ description: >
property on an Array
---*/
-var arr = [, , , ];
-Object.defineProperty(arr, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var arr = [, , , ];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(arr.indexOf(0), 0, 'arr.indexOf(0)');
assert.sameValue(arr.indexOf(1), 1, 'arr.indexOf(1)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js
index 9402b5c03..8c2c6d709 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-1.js
@@ -14,6 +14,4 @@ assert.sameValue(["0"].indexOf(0), -1, '["0"].indexOf(0)');
assert.sameValue([false].indexOf(0), -1, '[false].indexOf(0)');
assert.sameValue([undefined].indexOf(0), -1, '[undefined].indexOf(0)');
assert.sameValue([null].indexOf(0), -1, '[null].indexOf(0)');
-assert.sameValue([
- []
-].indexOf(0), -1, '[[]].indexOf(0)');
+assert.sameValue([[]].indexOf(0), -1, '[[]].indexOf(0)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js
index dcce4f017..8aad97866 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-ii-11.js
@@ -9,8 +9,8 @@ description: >
are Object type, and they refer to the same object
---*/
-var obj1 = {};
-var obj2 = {};
-var obj3 = obj2;
+ var obj1 = {};
+ var obj2 = {};
+ var obj3 = obj2;
assert.sameValue([{}, obj1, obj2].indexOf(obj3), 2, '[{}, obj1, obj2].indexOf(obj3)');
diff --git a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js
index 94a30fd4a..a593c8ce4 100644
--- a/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js
+++ b/test/built-ins/Array/prototype/indexOf/15.4.4.14-9-b-iii-2.js
@@ -9,26 +9,26 @@ description: >
element once search value is found
---*/
-var arr = [1, 2, , 1, 2];
-var elementThirdAccessed = false;
-var elementFifthAccessed = false;
+ var arr = [1, 2, , 1, 2];
+ var elementThirdAccessed = false;
+ var elementFifthAccessed = false;
-Object.defineProperty(arr, "2", {
- get: function() {
- elementThirdAccessed = true;
- return 2;
- },
- configurable: true
-});
-Object.defineProperty(arr, "4", {
- get: function() {
- elementFifthAccessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ elementThirdAccessed = true;
+ return 2;
+ },
+ configurable: true
+ });
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ elementFifthAccessed = true;
+ return 2;
+ },
+ configurable: true
+ });
-arr.indexOf(2);
+ arr.indexOf(2);
assert.sameValue(elementThirdAccessed, false, 'elementThirdAccessed');
assert.sameValue(elementFifthAccessed, false, 'elementFifthAccessed');
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js
index 002775eac..1953684e5 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T1.js
@@ -9,7 +9,7 @@ description: Checking this use new Array() and []
---*/
//CHECK#1
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
if (x.join() !== "0,1,2,3") {
$ERROR('#1: x = new Array(0,1,2,3); x.join() === "0,1,2,3". Actual: ' + (x.join()));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js
index 9ec63f6c7..abb176f63 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.2_T2.js
@@ -9,7 +9,7 @@ description: Checking this use new Array() and []
---*/
//CHECK#1
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
if (x.join(undefined) !== "0,1,2,3") {
$ERROR('#1: x = new Array(0,1,2,3); x.join(undefined) === "0,1,2,3". Actual: ' + (x.join(undefined)));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js
index bbe9801e5..8d8a730b0 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A1.3_T1.js
@@ -23,7 +23,7 @@ if (x.join() !== "") {
}
//CHECK#3
-x = Array(undefined, 1, null, 3);
+x = Array(undefined,1,null,3);
if (x.join() !== ",1,,3") {
$ERROR('#3: x = Array(undefined,1,null,3); x.join() === ",1,,3". Actual: ' + (x.join()));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js
index e9b56c053..0b9c69bf8 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T1.js
@@ -16,14 +16,14 @@ obj.join = Array.prototype.join;
if (obj.length !== undefined) {
$ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length));
} else {
- //CHECK#1
- if (obj.join() !== "") {
- $ERROR('#1: var obj = {}; obj.join = Array.prototype.join; obj.join() === "". Actual: ' + (obj.join()));
- }
- //CHECK#2
- if (obj.length !== undefined) {
- $ERROR('#2: var obj = {}; obj.join = Array.prototype.join; obj.join(); obj.length === undefined. Actual: ' + (obj.length));
- }
+ //CHECK#1
+ if (obj.join() !== "") {
+ $ERROR('#1: var obj = {}; obj.join = Array.prototype.join; obj.join() === "". Actual: ' + (obj.join()));
+ }
+ //CHECK#2
+ if (obj.length !== undefined) {
+ $ERROR('#2: var obj = {}; obj.join = Array.prototype.join; obj.join(); obj.length === undefined. Actual: ' + (obj.length));
+ }
}
//CHECK#3
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js
index 8a6fbb980..3cd42a832 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T2.js
@@ -43,7 +43,7 @@ if (obj.join() !== "") {
if (obj.length !== -0) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.join = Array.prototype.join; obj.join(); obj.length === 0. Actual: ' + (obj.length));
} else {
- if (1 / obj.length !== Number.NEGATIVE_INFINITY) {
+ if (1/obj.length !== Number.NEGATIVE_INFINITY) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.join = Array.prototype.join; obj.join(); obj.length === -0. Actual: ' + (obj.length));
}
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js
index 729580e04..ac019fb79 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A2_T4.js
@@ -16,51 +16,26 @@ var obj = {};
obj.join = Array.prototype.join;
//CHECK#1
-obj.length = {
- valueOf: function() {
- return 3
- }
-};
+obj.length = {valueOf: function() {return 3}};
if (obj.join() !== ",,") {
$ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.join() === ",,". Actual: ' + (obj.join()));
}
//CHECK#2
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return 2
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return 2}};
if (obj.join() !== ",,") {
$ERROR('#2: obj.length = {valueOf: function() {return 3}, toString: function() {return 2}} obj.join() === ",,". Actual: ' + (obj.join()));
}
//CHECK#3
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return {}
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return {}}};
if (obj.join() !== ",,") {
$ERROR('#3: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.join() === ",,". Actual: ' + (obj.join()));
}
//CHECK#4
try {
- obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- throw "error"
- }
- };
+ obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}};
if (obj.join() !== ",,") {
$ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.join() === ",". Actual: ' + (obj.join()));
}
@@ -74,38 +49,20 @@ catch (e) {
}
//CHECK#5
-obj.length = {
- toString: function() {
- return 2
- }
-};
+obj.length = {toString: function() {return 2}};
if (obj.join() !== ",") {
$ERROR('#5: obj.length = {toString: function() {return 2}} obj.join() === ",". Actual: ' + (obj.join()));
}
//CHECK#6
-obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return 2
- }
-}
+obj.length = {valueOf: function() {return {}}, toString: function() {return 2}}
if (obj.join() !== ",") {
$ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 2}} obj.join() === ",". Actual: ' + (obj.join()));
}
//CHECK#7
try {
- obj.length = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return 2
- }
- };
+ obj.length = {valueOf: function() {throw "error"}, toString: function() {return 2}};
obj.join();
$ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 2}}; obj.join() throw "error". Actual: ' + (obj.join()));
}
@@ -117,14 +74,7 @@ catch (e) {
//CHECK#8
try {
- obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ obj.length = {valueOf: function() {return {}}, toString: function() {return {}}};
obj.join();
$ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.join() throw TypeError. Actual: ' + (obj.join()));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js
index a76e7ba02..2bcd9eead 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T1.js
@@ -11,13 +11,13 @@ description: >
---*/
//CHECK#0
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
if (x.join("") !== "0123") {
$ERROR('#0: x = new Array(0,1,2,3); x.join("") === "0123". Actual: ' + (x.join("")));
}
//CHECK#1
-x = new Array(0, 1, 2, 3);
+x = new Array(0,1,2,3);
if (x.join("\\") !== "0\\1\\2\\3") {
$ERROR('#1: x = new Array(0,1,2,3); x.join("\\") === "0\\1\\2\\3". Actual: ' + (x.join("\\")));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js
index 28925d93e..70efad97b 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.1_T2.js
@@ -10,53 +10,28 @@ description: >
String)
---*/
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
//CHECK#1
-var object = {
- valueOf: function() {
- return "+"
- }
-};
+var object = {valueOf: function() {return "+"}};
if (x.join(object) !== "0[object Object]1[object Object]2[object Object]3") {
$ERROR('#1: var object = {valueOf: function() {return "+"}}; x.join(object) === "0[object Object]1[object Object]2[object Object]3". Actual: ' + (x.join(object)));
}
//CHECK#2
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return "*"
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return "*"}};
if (x.join(object) !== "0*1*2*3") {
$ERROR('#2: var object = {valueOf: function() {return "+"}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object)));
}
//CHECK#3
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return {}
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return {}}};
if (x.join(object) !== "0+1+2+3") {
$ERROR('#3: var object = {valueOf: function() {return "+"}, toString: function() {return {}}}; x.join(object) === "0+1+2+3". Actual: ' + (x.join(object)));
}
//CHECK#4
try {
- var object = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return "*"
- }
- };
+ var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}};
if (x.join(object) !== "0*1*2*3") {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object)));
}
@@ -70,38 +45,20 @@ catch (e) {
}
//CHECK#5
-var object = {
- toString: function() {
- return "*"
- }
-};
+var object = {toString: function() {return "*"}};
if (x.join(object) !== "0*1*2*3") {
$ERROR('#5: var object = {toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object)));
}
//CHECK#6
-var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return "*"
- }
-}
+var object = {valueOf: function() {return {}}, toString: function() {return "*"}}
if (x.join(object) !== "0*1*2*3") {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "*"}}; x.join(object) === "0*1*2*3". Actual: ' + (x.join(object)));
}
//CHECK#7
try {
- var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- throw "error"
- }
- };
+ var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}};
x.join(object);
$ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}}; x.join(object) throw "error". Actual: ' + (x.join(object)));
}
@@ -113,14 +70,7 @@ catch (e) {
//CHECK#8
try {
- var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ var object = {valueOf: function() {return {}}, toString: function() {return {}}};
x.join(object);
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; x.join(object) throw TypeError. Actual: ' + (x.join(object)));
}
@@ -132,16 +82,12 @@ catch (e) {
//CHECK#9
try {
- var object = {
- toString: function() {
- throw "error"
- }
- };
- [].join(object);
- $ERROR('#9.1: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + ([].join(object)));
+ var object = {toString: function() {throw "error"}};
+ [].join(object);
+ $ERROR('#9.1: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + ([].join(object)));
}
catch (e) {
- if (e !== "error") {
- $ERROR('#9.2: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + (e));
- }
+ if (e !== "error") {
+ $ERROR('#9.2: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + (e));
+ }
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js
index e90ed6ffe..f6a496655 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T1.js
@@ -11,13 +11,13 @@ description: >
---*/
//CHECK#0
-var x = new Array("", "", "");
+var x = new Array("","","");
if (x.join("") !== "") {
$ERROR('#0: var x = new Array("","",""); x.join("") === "". Actual: ' + (x.join("")));
}
//CHECK#1
-var x = new Array("\\", "\\", "\\");
+var x = new Array("\\","\\","\\");
if (x.join("\\") !== "\\\\\\\\\\") {
$ERROR('#1: var x = new Array("\\","\\","\\"); x.join("\\") === "\\\\\\\\\\". Actual: ' + (x.join("\\")));
}
@@ -29,31 +29,31 @@ if (x.join("&") !== "&&&&&") {
}
//CHECK#3
-var x = new Array(true, true, true);
+var x = new Array(true,true,true);
if (x.join() !== "true,true,true") {
- $ERROR('#3: var x = new Array(true,true,true); x.join(true,true,true) === "true,true,true". Actual: ' + (x.join(true, true, true)));
+ $ERROR('#3: var x = new Array(true,true,true); x.join(true,true,true) === "true,true,true". Actual: ' + (x.join(true,true,true)));
}
//CHECK#4
-var x = new Array(null, null, null);
+var x = new Array(null,null,null);
if (x.join() !== ",,") {
- $ERROR('#4: var x = new Array(null,null,null); x.join(null,null,null) === ",,". Actual: ' + (x.join(null, null, null)));
+ $ERROR('#4: var x = new Array(null,null,null); x.join(null,null,null) === ",,". Actual: ' + (x.join(null,null,null)));
}
//CHECK#5
-var x = new Array(undefined, undefined, undefined);
+var x = new Array(undefined,undefined,undefined);
if (x.join() !== ",,") {
- $ERROR('#5: var x = new Array(undefined,undefined,undefined); x.join(undefined,undefined,undefined) === ",,". Actual: ' + (x.join(undefined, undefined, undefined)));
+ $ERROR('#5: var x = new Array(undefined,undefined,undefined); x.join(undefined,undefined,undefined) === ",,". Actual: ' + (x.join(undefined,undefined,undefined)));
}
//CHECK#6
-var x = new Array(Infinity, Infinity, Infinity);
+var x = new Array(Infinity,Infinity,Infinity);
if (x.join() !== "Infinity,Infinity,Infinity") {
- $ERROR('#6: var x = new Array(Infinity,Infinity,Infinity); x.join(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.join(Infinity, Infinity, Infinity)));
+ $ERROR('#6: var x = new Array(Infinity,Infinity,Infinity); x.join(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.join(Infinity,Infinity,Infinity)));
}
//CHECK#7
-var x = new Array(NaN, NaN, NaN);
+var x = new Array(NaN,NaN,NaN);
if (x.join() !== "NaN,NaN,NaN") {
- $ERROR('#7: var x = new Array(NaN,NaN,NaN); x.join(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.join(NaN, NaN, NaN)));
+ $ERROR('#7: var x = new Array(NaN,NaN,NaN); x.join(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.join(NaN,NaN,NaN)));
}
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js
index 4dc0ff12a..863cead86 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A3.2_T2.js
@@ -9,39 +9,21 @@ description: If Type(argument) is Object, evaluate ToPrimitive(argument, String)
---*/
//CHECK#1
-var object = {
- valueOf: function() {
- return "+"
- }
-};
+var object = {valueOf: function() {return "+"}};
var x = new Array(object);
if (x.join() !== "[object Object]") {
$ERROR('#1: var object = {valueOf: function() {return "+"}} var x = new Array(object); x.join() === "[object Object]". Actual: ' + (x.join()));
}
//CHECK#2
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return "*"
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return "*"}};
var x = new Array(object);
if (x.join() !== "*") {
$ERROR('#2: var object = {valueOf: function() {return "+"}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join()));
}
//CHECK#3
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return {}
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return {}}};
var x = new Array(object);
if (x.join() !== "+") {
$ERROR('#3: var object = {valueOf: function() {return "+"}, toString: function() {return {}}} var x = new Array(object); x.join() === "+". Actual: ' + (x.join()));
@@ -49,14 +31,7 @@ if (x.join() !== "+") {
//CHECK#4
try {
- var object = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return "*"
- }
- };
+ var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}};
var x = new Array(object);
if (x.join() !== "*") {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join()));
@@ -71,25 +46,14 @@ catch (e) {
}
//CHECK#5
-var object = {
- toString: function() {
- return "*"
- }
-};
+var object = {toString: function() {return "*"}};
var x = new Array(object);
if (x.join() !== "*") {
$ERROR('#5: var object = {toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join()));
}
//CHECK#6
-var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return "*"
- }
-}
+var object = {valueOf: function() {return {}}, toString: function() {return "*"}}
var x = new Array(object);
if (x.join() !== "*") {
$ERROR('#6: var object = {valueOf: function() {return {}}, toString: function() {return "*"}} var x = new Array(object); x.join() === "*". Actual: ' + (x.join()));
@@ -97,14 +61,7 @@ if (x.join() !== "*") {
//CHECK#7
try {
- var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- throw "error"
- }
- };
+ var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}};
var x = new Array(object);
x.join();
$ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}} var x = new Array(object); x.join() throw "error". Actual: ' + (x.join()));
@@ -117,14 +74,7 @@ catch (e) {
//CHECK#8
try {
- var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ var object = {valueOf: function() {return {}}, toString: function() {return {}}};
var x = new Array(object);
x.join();
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}} var x = new Array(object); x.join() throw TypeError. Actual: ' + (x.join()));
diff --git a/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js b/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js
index 90ecc5cff..e8e781793 100644
--- a/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js
+++ b/test/built-ins/Array/prototype/join/S15.4.4.5_A5_T1.js
@@ -22,9 +22,7 @@ if (x.join() !== "0,1") {
Object.prototype[1] = 1;
Object.prototype.length = 2;
Object.prototype.join = Array.prototype.join;
-x = {
- 0: 0
-};
+x = {0:0};
if (x.join() !== "0,1") {
$ERROR('#2: Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.join = Array.prototype.join; x = {0:0}; x.join() === "0,1". Actual: ' + (x.join()));
}
diff --git a/test/built-ins/Array/prototype/keys/iteration-mutable.js b/test/built-ins/Array/prototype/keys/iteration-mutable.js
index d2a2ecdbb..c20b26ee9 100644
--- a/test/built-ins/Array/prototype/keys/iteration-mutable.js
+++ b/test/built-ins/Array/prototype/keys/iteration-mutable.js
@@ -20,7 +20,7 @@ var result;
array.push('a');
result = iterator.next();
-assert.sameValue(result.done, false, 'First result `done` flag');
+assert.sameValue(result.done, false , 'First result `done` flag');
assert.sameValue(result.value, 0, 'First result `value`');
result = iterator.next();
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js
index a1048adc8..39fc4df94 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.lastIndexOf applied to undefined throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(undefined);
+ Array.prototype.lastIndexOf.call(undefined);
});
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js
index ba6aec098..f2f1afb8b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-10.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.15-1-10
description: Array.prototype.lastIndexOf applied to the Math object
---*/
-Math.length = 2;
-Math[1] = 100;
+ Math.length = 2;
+ Math[1] = 100;
assert.sameValue(Array.prototype.lastIndexOf.call(Math, 100), 1, 'Array.prototype.lastIndexOf.call(Math, 100)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js
index ed42913de..acfcd13a2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-11.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-11
description: Array.prototype.lastIndexOf applied to Date object
---*/
-var obj = new Date();
-obj.length = 2;
-obj[1] = true;
+ var obj = new Date();
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js
index 26b2c1492..54d128eb5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-12.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-12
description: Array.prototype.lastIndexOf applied to RegExp object
---*/
-var obj = new RegExp("afdasf");
-obj.length = 100;
-obj[1] = "afdasf";
+ var obj = new RegExp("afdasf");
+ obj.length = 100;
+ obj[1] = "afdasf";
assert.sameValue(Array.prototype.lastIndexOf.call(obj, "afdasf"), 1, 'Array.prototype.lastIndexOf.call(obj, "afdasf")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js
index 8ac92c385..e6a2d8166 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-13.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.15-1-13
description: Array.prototype.lastIndexOf applied to the JSON object
---*/
-var targetObj = {};
+ var targetObj = {};
-JSON[3] = targetObj;
-JSON.length = 5;
+ JSON[3] = targetObj;
+ JSON.length = 5;
assert.sameValue(Array.prototype.lastIndexOf.call(JSON, targetObj), 3, 'Array.prototype.lastIndexOf.call(JSON, targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js
index 13cd33284..258d52b25 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-14.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-14
description: Array.prototype.lastIndexOf applied to Error object
---*/
-var obj = new SyntaxError();
-obj.length = 2;
-obj[1] = Infinity;
+ var obj = new SyntaxError();
+ obj.length = 2;
+ obj[1] = Infinity;
assert.sameValue(Array.prototype.lastIndexOf.call(obj, Infinity), 1, 'Array.prototype.lastIndexOf.call(obj, Infinity)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js
index 4d0dcb42a..717e839b3 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-15.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-15
description: Array.prototype.lastIndexOf applied to the Arguments object
---*/
-var obj = (function fun() {
- return arguments;
-}(1, 2, 3));
+ var obj = (function fun() {
+ return arguments;
+ }(1, 2, 3));
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), 1, 'Array.prototype.lastIndexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js
index ee2d9c1dc..d09b72ba6 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.lastIndexOf applied to null throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(null);
+ Array.prototype.lastIndexOf.call(null);
});
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js
index 80339e81e..07823a743 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.15-1-3
description: Array.prototype.lastIndexOf applied to boolean primitive
---*/
-Boolean.prototype[1] = true;
-Boolean.prototype.length = 2;
+ Boolean.prototype[1] = true;
+ Boolean.prototype.length = 2;
assert.sameValue(Array.prototype.lastIndexOf.call(true, true), 1, 'Array.prototype.lastIndexOf.call(true, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js
index 6a71084ce..d04aef167 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-4.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-4
description: Array.prototype.lastIndexOf applied to Boolean object
---*/
-var obj = new Boolean(false);
-obj.length = 2;
-obj[1] = true;
+ var obj = new Boolean(false);
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js
index 840ae225c..1119ac1aa 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.15-1-5
description: Array.prototype.lastIndexOf applied to number primitive
---*/
-Number.prototype[1] = isNaN;
-Number.prototype.length = 2;
+ Number.prototype[1] = isNaN;
+ Number.prototype.length = 2;
assert.sameValue(Array.prototype.lastIndexOf.call(5, isNaN), 1, 'Array.prototype.lastIndexOf.call(5, isNaN)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js
index e35973cd8..5e96b816e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-6.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-1-6
description: Array.prototype.lastIndexOf applied to Number object
---*/
-var obj = new Number(-3);
-obj.length = 2;
-obj[1] = true;
+ var obj = new Number(-3);
+ obj.length = 2;
+ obj[1] = true;
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js
index 998396995..d623c9bea 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-8.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.15-1-8
description: Array.prototype.lastIndexOf applied to String object
---*/
-var obj = new String("undefined");
+ var obj = new String("undefined");
assert.sameValue(Array.prototype.lastIndexOf.call(obj, "f"), 4, 'Array.prototype.lastIndexOf.call(obj, "f")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js
index 6d69baa7c..7372b6b1f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-1-9.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.15-1-9
description: Array.prototype.lastIndexOf applied to Function object
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[1] = true;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[1] = true;
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js
index 09c37e87c..5da3312da 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-1.js
@@ -9,11 +9,7 @@ description: >
Array-like object
---*/
-var obj = {
- 1: null,
- 2: undefined,
- length: 2
-};
+ var obj = { 1: null, 2: undefined, length: 2 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), 1, 'Array.prototype.lastIndexOf.call(obj, null)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), -1, 'Array.prototype.lastIndexOf.call(obj, undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js
index 8a17af9c0..a77b62b12 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-10.js
@@ -9,20 +9,20 @@ description: >
property on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = 1;
-child[2] = 2;
+ var child = new Con();
+ child[1] = 1;
+ child[2] = 2;
assert.sameValue(Array.prototype.lastIndexOf.call(child, 1), 1, 'Array.prototype.lastIndexOf.call(child, 1)');
assert.sameValue(Array.prototype.lastIndexOf.call(child, 2), -1, 'Array.prototype.lastIndexOf.call(child, 2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js
index ab2b9fdd7..0ae767b6f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-11.js
@@ -9,12 +9,10 @@ description: >
without a get function on an Array-like object
---*/
-var obj = {
- 0: 1
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 0: 1 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js
index fcd9b41d1..98cf2147a 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-12.js
@@ -10,19 +10,17 @@ description: >
property on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-var obj = {
- 1: 1
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 1: 1 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js
index 6f379e886..59045d59d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-13.js
@@ -9,16 +9,16 @@ description: >
property without a get function on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[0] = true;
+ var child = new Con();
+ child[0] = true;
assert.sameValue(Array.prototype.lastIndexOf.call(child, true), -1, 'Array.prototype.lastIndexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js
index f47f32dc7..f88b2b3c8 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-14.js
@@ -9,9 +9,6 @@ description: >
Array-like object
---*/
-var obj = {
- 0: null,
- 1: undefined
-};
+ var obj = { 0: null, 1: undefined };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), -1, 'Array.prototype.lastIndexOf.call(obj, null)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js
index 62532d79a..02ea04ddd 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-17.js
@@ -9,11 +9,11 @@ description: >
implements its own property get method
---*/
-var targetObj = function() {};
-var func = function(a, b) {
- arguments[2] = function() {};
- return Array.prototype.lastIndexOf.call(arguments, targetObj) === 1 &&
- Array.prototype.lastIndexOf.call(arguments, arguments[2]) === -1;
-};
+ var targetObj = function () { };
+ var func = function (a, b) {
+ arguments[2] = function () { };
+ return Array.prototype.lastIndexOf.call(arguments, targetObj) === 1 &&
+ Array.prototype.lastIndexOf.call(arguments, arguments[2]) === -1;
+ };
assert(func(0, targetObj), 'func(0, targetObj) !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js
index f2a6682fe..6cf87f644 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-18.js
@@ -9,9 +9,9 @@ description: >
implements its own property get method
---*/
-var str = new String("012");
+ var str = new String("012");
-String.prototype[3] = "3";
+ String.prototype[3] = "3";
assert.sameValue(Array.prototype.lastIndexOf.call(str, "2"), 2, 'Array.prototype.lastIndexOf.call(str, "2")');
assert.sameValue(Array.prototype.lastIndexOf.call(str, "3"), -1, 'Array.prototype.lastIndexOf.call(str, "3")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js
index e5542f0ed..89565918b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-19.js
@@ -9,11 +9,11 @@ description: >
implements its own property get method
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[1] = "b";
-obj[2] = "c";
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[1] = "b";
+ obj[2] = "c";
assert.sameValue(Array.prototype.lastIndexOf.call(obj, obj[1]), 1, 'Array.prototype.lastIndexOf.call(obj, obj[1])');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, obj[2]), -1, 'Array.prototype.lastIndexOf.call(obj, obj[2])');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js
index 134cd566a..651492954 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-2.js
@@ -9,9 +9,9 @@ description: >
Array
---*/
-var targetObj = {};
+ var targetObj = {};
-Array.prototype[2] = targetObj;
+ Array.prototype[2] = targetObj;
assert.sameValue([0, targetObj].lastIndexOf(targetObj), 1, '[0, targetObj].lastIndexOf(targetObj)');
assert.sameValue([0, 1].lastIndexOf(targetObj), -1, '[0, 1].lastIndexOf(targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js
index 5d2a8bbf1..b500b9f10 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-3.js
@@ -9,15 +9,13 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-var proto = {
- length: 0
-};
+ var proto = {length: 0};
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[1] = child;
+ var child = new Con();
+ child.length = 2;
+ child[1] = child;
assert.sameValue(Array.prototype.lastIndexOf.call(child, child), 1, 'Array.prototype.lastIndexOf.call(child, child)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js
index 0a8f124f3..a13cc99a9 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-4.js
@@ -9,10 +9,10 @@ description: >
that overrides an inherited data property on an Array
---*/
-var targetObj = {};
-var arrProtoLen;
+ var targetObj = {};
+ var arrProtoLen;
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
assert.sameValue([0, targetObj, 2].lastIndexOf(targetObj), 1, '[0, targetObj, 2].lastIndexOf(targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js
index 33e9075e6..fa2987510 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-5.js
@@ -9,23 +9,23 @@ description: >
overrides an inherited accessor property on an Array-like object
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[1] = null;
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[1] = null;
assert.sameValue(Array.prototype.lastIndexOf.call(child, null), 1, 'Array.prototype.lastIndexOf.call(child, null)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js
index 05900f832..bfe82a3ac 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-6.js
@@ -9,16 +9,14 @@ description: >
property on an Array-like object
---*/
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = "x";
-child[2] = "y";
+ var child = new Con();
+ child[1] = "x";
+ child[2] = "y";
assert.sameValue(Array.prototype.lastIndexOf.call(child, "x"), 1, 'Array.prototype.lastIndexOf.call(child, "x")');
assert.sameValue(Array.prototype.lastIndexOf.call(child, "y"), -1, 'Array.prototype.lastIndexOf.call(child, "y")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js
index 4c38da5be..d5b443115 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-7.js
@@ -9,17 +9,14 @@ description: >
an Array-like object
---*/
-var obj = {
- 1: true,
- 2: false
-};
+ var obj = { 1: true, 2: false };
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js
index ef7ea0a51..61f659a69 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-8.js
@@ -9,21 +9,19 @@ description: >
that overrides an inherited data property on an Array-like object
---*/
-var proto = {
- length: 0
-};
+ var proto = { length: 0 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = eval;
+ var child = new Con();
+ child[1] = eval;
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(child, eval), 1, 'Array.prototype.lastIndexOf.call(child, eval)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js
index 9bc7a8b5b..3e0695eb8 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-2-9.js
@@ -10,25 +10,25 @@ description: >
object
---*/
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child[1] = true;
+ var child = new Con();
+ child[1] = true;
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(child, true), 1, 'Array.prototype.lastIndexOf.call(child, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js
index 1141fd90a..374141ad0 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-1.js
@@ -7,10 +7,6 @@ es5id: 15.4.4.15-3-1
description: Array.prototype.lastIndexOf - value of 'length' is undefined
---*/
-var obj = {
- 0: 1,
- 1: 1,
- length: undefined
-};
+ var obj = { 0: 1, 1: 1, length: undefined };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js
index 761fd85c1..c6da76339 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-10.js
@@ -9,9 +9,6 @@ description: >
is NaN)
---*/
-var obj = {
- 0: 0,
- length: NaN
-};
+ var obj = { 0: 0, length: NaN };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), -1, 'Array.prototype.lastIndexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js
index dae527da9..f0838068e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-11.js
@@ -9,11 +9,7 @@ description: >
containing positive number
---*/
-var obj = {
- 1: true,
- 2: false,
- length: "2"
-};
+ var obj = {1: true, 2: false, length: "2"};
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js
index 99df97b76..6811ff35d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-12.js
@@ -9,11 +9,7 @@ description: >
containing negative number
---*/
-var obj = {
- 1: null,
- 2: undefined,
- length: "-4294967294"
-};
+ var obj = {1: null, 2: undefined, length: "-4294967294"};
assert.sameValue(Array.prototype.lastIndexOf.call(obj, null), -1, 'Array.prototype.lastIndexOf.call(obj, null)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), -1, 'Array.prototype.lastIndexOf.call(obj, undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js
index 394744d69..afdcf21df 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-13.js
@@ -9,11 +9,7 @@ description: >
containing a decimal number
---*/
-var obj = {
- 4: 4,
- 5: 5,
- length: "5.512345"
-};
+ var obj = { 4: 4, 5: 5, length: "5.512345" };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 4), 4, 'Array.prototype.lastIndexOf.call(obj, 4)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 5), -1, 'Array.prototype.lastIndexOf.call(obj, 5)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js
index 3751aeb80..a49316794 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-14.js
@@ -9,10 +9,6 @@ description: >
containing -Infinity
---*/
-var objThree = {
- 0: true,
- 1: true,
- length: "-Infinity"
-};
+ var objThree = { 0: true, 1: true, length: "-Infinity" };
assert.sameValue(Array.prototype.lastIndexOf.call(objThree, true), -1, 'Array.prototype.lastIndexOf.call(objThree, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js
index cb669fc01..281305e13 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-15.js
@@ -9,11 +9,7 @@ description: >
containing an exponential number
---*/
-var obj = {
- 229: 229,
- 230: 2.3E2,
- length: "2.3E2"
-};
+ var obj = {229: 229, 230: 2.3E2, length: "2.3E2"};
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 229), 229, 'Array.prototype.lastIndexOf.call(obj, 229)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2.3E2), -1, 'Array.prototype.lastIndexOf.call(obj, 2.3E2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js
index 653a8ea36..6c0e5e388 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-16.js
@@ -9,11 +9,7 @@ description: >
is able to be converted into hex number
---*/
-var obj = {
- 2573: 2573,
- 2574: 0x000A0E,
- length: "0x000A0E"
-};
+ var obj = { 2573: 2573, 2574: 0x000A0E, length: "0x000A0E" };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2573), 2573, 'Array.prototype.lastIndexOf.call(obj, 2573)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0x000A0E), -1, 'Array.prototype.lastIndexOf.call(obj, 0x000A0E)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js
index 345e54e14..c60323158 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-17.js
@@ -9,11 +9,7 @@ description: >
containing a number with leading zeros
---*/
-var obj = {
- 1: 1,
- 2: 2,
- length: "0002.0"
-};
+ var obj = { 1: 1, 2: 2, length: "0002.0" };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), -1, 'Array.prototype.lastIndexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js
index 76161d8da..a56ab67a7 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-18.js
@@ -9,10 +9,7 @@ description: >
can't convert to a number
---*/
-var targetObj = new String("123abc123");
-var obj = {
- 0: targetObj,
- length: "123abc123"
-};
+ var targetObj = new String("123abc123");
+ var obj = { 0: targetObj, length: "123abc123" };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js
index bbbf635c8..419be4856 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-19.js
@@ -9,23 +9,23 @@ description: >
has an own toString method
---*/
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-var targetObj = this;
-var obj = {
- 1: targetObj,
- 2: 2,
+ var targetObj = this;
+ var obj = {
+ 1: targetObj,
+ 2: 2,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), 1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), -1, 'Array.prototype.lastIndexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js
index 1f603c380..16314cad2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-2.js
@@ -9,11 +9,7 @@ description: >
boolean (value is true)
---*/
-var obj = {
- 0: 0,
- 1: 1,
- length: true
-};
+ var obj = { 0: 0, 1: 1, length: true };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), -1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js
index 51df32323..56d05e1a1 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-20.js
@@ -9,17 +9,17 @@ description: >
has an own valueOf method
---*/
-//valueOf method will be invoked first, since hint is Number
-var obj = {
- 1: true,
- 2: 2,
+ //valueOf method will be invoked first, since hint is Number
+ var obj = {
+ 1: true,
+ 2: 2,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 2), -1, 'Array.prototype.lastIndexOf.call(obj, 2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js
index 4ffe9d3bf..d568434fa 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-21.js
@@ -10,24 +10,24 @@ description: >
returns a string
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var targetObj = this;
-var obj = {
- 1: targetObj,
- length: {
- toString: function() {
- toStringAccessed = true;
- return '3';
- },
+ var targetObj = this;
+ var obj = {
+ 1: targetObj,
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '3';
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), 1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js
index 69aa3c8f9..9624defeb 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-22.js
@@ -10,26 +10,26 @@ description: >
return primitive values
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- 1: true,
- length: {
- toString: function() {
- toStringAccessed = true;
- return {};
- },
+ var obj = {
+ 1: true,
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(obj, true);
+ Array.prototype.lastIndexOf.call(obj, true);
});
assert(toStringAccessed, 'toStringAccessed');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js
index 178517a41..a69b33edf 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-23.js
@@ -10,29 +10,29 @@ description: >
valueOf methods
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return 2;
-};
+ var child = new Con();
+ child.toString = function () {
+ toStringAccessed = true;
+ return 2;
+ };
-var obj = {
- 1: child,
- length: child
-};
+ var obj = {
+ 1: child,
+ length: child
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, child), 1, 'Array.prototype.lastIndexOf.call(obj, child)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js
index 08763b590..31ffe0ed7 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-24.js
@@ -9,11 +9,7 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-var obj = {
- 122: true,
- 123: false,
- length: 123.5
-};
+ var obj = { 122: true, 123: false, length: 123.5 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 122, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js
index fe78a4e2d..12e37f63b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-25.js
@@ -9,11 +9,7 @@ description: >
non-integer
---*/
-var obj = {
- 1: true,
- 2: false,
- length: -4294967294.5
-};
+ var obj = { 1: true, 2: false, length: -4294967294.5 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), -1, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, false), -1, 'Array.prototype.lastIndexOf.call(obj, false)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js
index 476805324..a28fbc746 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-28.js
@@ -9,12 +9,12 @@ description: >
(2^32)
---*/
-var targetObj = {};
-var obj = {
- 0: targetObj,
- 4294967294: targetObj,
- 4294967295: targetObj,
- length: 4294967296
-};
+ var targetObj = {};
+ var obj = {
+ 0: targetObj,
+ 4294967294: targetObj,
+ 4294967295: targetObj,
+ length: 4294967296
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), 4294967295, 'verify length is 4294967296 finally');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js
index 98bb896df..069585fb2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-3.js
@@ -9,9 +9,6 @@ description: >
is 0)
---*/
-var obj = {
- 0: "undefined",
- length: 0
-};
+ var obj = { 0: "undefined", length: 0 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, "undefined"), -1, 'Array.prototype.lastIndexOf.call(obj, "undefined")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js
index 5e6cedae9..1c8a99b9c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-4.js
@@ -9,9 +9,6 @@ description: >
is -0)
---*/
-var obj = {
- 0: true,
- length: -0
-};
+ var obj = { 0: true, length: -0 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), -1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js
index 60a172189..927ee3daa 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-5.js
@@ -9,9 +9,6 @@ description: >
is +0)
---*/
-var obj = {
- 0: +0,
- length: +0
-};
+ var obj = { 0: +0, length: +0 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, +0), -1, 'Array.prototype.lastIndexOf.call(obj, +0)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js
index 5f097dbb0..8aec6c2c1 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-6.js
@@ -9,11 +9,7 @@ description: >
is a positive number)
---*/
-var obj = {
- 99: true,
- 100: 100,
- length: 100
-};
+ var obj = { 99: true, 100: 100, length: 100 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 99, 'Array.prototype.lastIndexOf.call(obj, true)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 100), -1, 'Array.prototype.lastIndexOf.call(obj, 100)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js
index 8f9129849..ff7fbc0d2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-7.js
@@ -9,11 +9,7 @@ description: >
is a negative number)
---*/
-var obj = {
- 4: -Infinity,
- 5: Infinity,
- length: 5 - Math.pow(2, 32)
-};
+ var obj = { 4: -Infinity, 5: Infinity, length: 5 - Math.pow(2, 32) };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, -Infinity), -1, 'Array.prototype.lastIndexOf.call(obj, -Infinity)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, Infinity), -1, 'Array.prototype.lastIndexOf.call(obj, Infinity)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js
index b93878341..39856e713 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-3-9.js
@@ -9,9 +9,6 @@ description: >
is -Infinity)
---*/
-var obj = {
- 0: 0,
- length: -Infinity
-};
+ var obj = { 0: 0, length: -Infinity };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), -1, 'Array.prototype.lastIndexOf.call(obj, 0)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js
index f6fc91253..f073190b9 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-1.js
@@ -9,6 +9,6 @@ description: >
array)
---*/
-var i = [].lastIndexOf(42);
+ var i = [].lastIndexOf(42);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js
index 1899442e7..72514438f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-10.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.15-4-10
description: Array.prototype.lastIndexOf - 'length' is a number of value -6e-1
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: -6e-1
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: -6e-1 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js
index cec59b134..fdf1b598e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-11.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.15-4-11
description: Array.prototype.lastIndexOf - 'length' is an empty string
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: ""
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: "" };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js
index 5ed7ad249..ced61de4c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-2.js
@@ -9,9 +9,7 @@ description: >
overridden to null (type conversion))
---*/
-var i = Array.prototype.lastIndexOf.call({
- length: null
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: null}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js
index 2004e3678..52e2fa68c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-3.js
@@ -9,9 +9,7 @@ description: >
overridden to false (type conversion))
---*/
-var i = Array.prototype.lastIndexOf.call({
- length: false
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: false}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js
index b2babee1d..592a69274 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-4.js
@@ -9,15 +9,12 @@ description: >
'array' with length 0 )
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-var i = Array.prototype.lastIndexOf.call({
- length: 0
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: 0}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js
index 9e7201565..f664184bc 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-5.js
@@ -9,9 +9,7 @@ description: >
overridden to '0' (type conversion))
---*/
-var i = Array.prototype.lastIndexOf.call({
- length: '0'
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: '0'}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js
index 1362e14ae..2a81100b7 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-6.js
@@ -9,13 +9,7 @@ description: >
(subclassed Array, length overridden with obj with valueOf)
---*/
-var i = Array.prototype.lastIndexOf.call({
- length: {
- valueOf: function() {
- return 0;
- }
- }
-}, 1);
+ var i = Array.prototype.lastIndexOf.call({length: { valueOf: function () { return 0;}}}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js
index 57850a027..cf238e3e2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-7.js
@@ -9,30 +9,19 @@ description: >
is object overridden with obj w/o valueOf (toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var i = Array.prototype.lastIndexOf.call({
- length: {
- toString: function() {
- return '0';
- }
- }
-}, 1);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var i = Array.prototype.lastIndexOf.call({length: { toString: function () { return '0';}}}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js
index ae98ed9f0..90fdbad63 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-8.js
@@ -9,22 +9,20 @@ description: >
an empty array)
---*/
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-var i = Array.prototype.lastIndexOf.call({
- length: []
-}, 1);
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+ var i = Array.prototype.lastIndexOf.call({length: [ ]}, 1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js
index 7f758adec..6ebf6b4eb 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-4-9.js
@@ -7,11 +7,7 @@ es5id: 15.4.4.15-4-9
description: Array.prototype.lastIndexOf - 'length' is a number of value 0.1
---*/
-var targetObj = [];
-var obj = {
- 0: targetObj,
- 100: targetObj,
- length: 0.1
-};
+ var targetObj = [];
+ var obj = { 0: targetObj, 100: targetObj, length: 0.1 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, targetObj), -1, 'Array.prototype.lastIndexOf.call(obj, targetObj)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js
index f632c5bf9..44f940354 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.15-5-1
description: Array.prototype.lastIndexOf when fromIndex is string
---*/
-var a = new Array(0, 1, 1);
+ var a = new Array(0,1,1);
-assert.sameValue(a.lastIndexOf(1, "1"), 1, '"1" resolves to 1');
-assert.sameValue(a.lastIndexOf(1, "one"), -1, 'NaN string resolves to 01');
+assert.sameValue(a.lastIndexOf(1,"1"), 1, '"1" resolves to 1');
+assert.sameValue(a.lastIndexOf(1,"one"), -1, 'NaN string resolves to 01');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js
index 3e6778af6..6a9a11c19 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-10.js
@@ -9,7 +9,7 @@ description: >
(value is positive number)
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, 1.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, 1.5)');
assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, 1.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, 1.5)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js
index 839e611a8..5ed43bf0e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-11.js
@@ -9,7 +9,7 @@ description: >
(value is negative number)
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, -2.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, -2.5)');
assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, -2.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, -2.5)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js
index 03d5bc0da..4e7c34dd9 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-12.js
@@ -9,7 +9,7 @@ description: >
(value is Infinity)
---*/
-var arr = [];
-arr[Math.pow(2, 32) - 2] = null; // length is the max value of Uint type
+ var arr = [];
+ arr[Math.pow(2, 32) - 2] = null; // length is the max value of Uint type
assert.sameValue(arr.lastIndexOf(null, Infinity), Math.pow(2, 32) - 2, 'arr.lastIndexOf(null, Infinity)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js
index ab3089950..a219b6b67 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-16.js
@@ -9,7 +9,7 @@ description: >
containing Infinity
---*/
-var arr = [];
-arr[Math.pow(2, 32) - 2] = true; // length is the max value of Uint type
+ var arr = [];
+ arr[Math.pow(2, 32) - 2] = true; // length is the max value of Uint type
assert.sameValue(arr.lastIndexOf(true, "Infinity"), Math.pow(2, 32) - 2, 'arr.lastIndexOf(true, "Infinity")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js
index d5bf6c0fa..973d33cd3 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-18.js
@@ -9,7 +9,7 @@ description: >
containing an exponential number
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, NaN, targetObj, 3, false].lastIndexOf(targetObj, "2E0"), 2, '[0, NaN, targetObj, 3, false].lastIndexOf(targetObj, "2E0")');
assert.sameValue([0, NaN, 3, targetObj, false].lastIndexOf(targetObj, "2E0"), -1, '[0, NaN, 3, targetObj, false].lastIndexOf(targetObj, "2E0")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js
index acb1c0140..90b87161f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-19.js
@@ -9,7 +9,7 @@ description: >
containing a hex number
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, "0x0002"), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, "0x0002")');
assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, "0x0002"), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, "0x0002")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js
index 95b4db82b..8dc61ceae 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-2.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-5-2
description: Array.prototype.lastIndexOf when fromIndex is floating point number
---*/
-var a = new Array(1, 2, 1);
+ var a = new Array(1,2,1);
-assert.sameValue(a.lastIndexOf(2, 1.49), 1, '1.49 resolves to 1');
-assert.sameValue(a.lastIndexOf(2, 0.51), -1, '0.51 resolves to 0');
-assert.sameValue(a.lastIndexOf(1, 0.51), 0, '0.51 resolves to 0');
+assert.sameValue(a.lastIndexOf(2,1.49), 1, '1.49 resolves to 1');
+assert.sameValue(a.lastIndexOf(2,0.51), -1, '0.51 resolves to 0');
+assert.sameValue(a.lastIndexOf(1,0.51), 0, '0.51 resolves to 0');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js
index 72a6f16fa..de7d8cdea 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-20.js
@@ -9,7 +9,7 @@ description: >
string containing a number with leading zeros
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, "0002.10"), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, "0002.10")');
assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, "0002.10"), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, "0002.10")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js
index d5ec47052..21e3ef508 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-21.js
@@ -9,17 +9,17 @@ description: >
Object, and has an own toString method
---*/
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-var fromIndex = {
- toString: function() {
- return '2';
- }
-};
-var targetObj = new RegExp();
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ var fromIndex = {
+ toString: function () {
+ return '2';
+ }
+ };
+ var targetObj = new RegExp();
assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex)');
assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js
index b3bcfbc46..edd857c53 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-22.js
@@ -9,13 +9,13 @@ description: >
object, and has an own valueOf method
---*/
-var fromIndex = {
- valueOf: function() {
- return 2;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ return 2;
+ }
+ };
-var targetObj = function() {};
+ var targetObj = function () {};
assert.sameValue([0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex), 2, '[0, true, targetObj, 3, false].lastIndexOf(targetObj, fromIndex)');
assert.sameValue([0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex), -1, '[0, true, 3, targetObj, false].lastIndexOf(targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js
index e371687ad..2387ba657 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-23.js
@@ -10,20 +10,20 @@ description: >
method that returns a string
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var fromIndex = {
- toString: function() {
- toStringAccessed = true;
- return '1';
- },
+ var fromIndex = {
+ toString: function () {
+ toStringAccessed = true;
+ return '1';
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ };
assert.sameValue([0, true].lastIndexOf(true, fromIndex), 1, '[0, true].lastIndexOf(true, fromIndex)');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js
index 949b07c4a..52bcc4564 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-24.js
@@ -10,23 +10,23 @@ description: >
than don't return primitive value
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var fromIndex = {
- toString: function() {
- toStringAccessed = true;
- return {};
- },
+ var fromIndex = {
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ },
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- }
-};
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ }
+ };
assert.throws(TypeError, function() {
- [0, null].lastIndexOf(null, fromIndex);
+ [0, null].lastIndexOf(null, fromIndex);
});
assert(toStringAccessed, 'toStringAccessed');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js
index 8de12b184..c8860be07 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-25.js
@@ -10,24 +10,24 @@ description: >
inherited valueOf methods
---*/
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 1;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 1;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () {};
+ Con.prototype = proto;
-var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return 1;
-};
+ var child = new Con();
+ child.toString = function () {
+ toStringAccessed = true;
+ return 1;
+ };
assert.sameValue([0, true].lastIndexOf(true, child), 1, '[0, true].lastIndexOf(true, child)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js
index 6b977c909..0ec967938 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-26.js
@@ -9,29 +9,29 @@ description: >
visible when an exception occurs
---*/
-var stepTwoOccurs = false;
-var stepFiveOccurs = false;
-var obj = {};
+ var stepTwoOccurs = false;
+ var stepFiveOccurs = false;
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- stepTwoOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ stepTwoOccurs = true;
+ if (stepFiveOccurs) {
+ throw new Error("Step 5 occurred out of order");
+ }
+ return 20;
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
-Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
+ Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
assert(stepTwoOccurs, 'stepTwoOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js
index dc56d995c..491866633 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-27.js
@@ -9,34 +9,34 @@ description: >
visible when an exception occurs
---*/
-var stepThreeOccurs = false;
-var stepFiveOccurs = false;
+ var stepThreeOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- valueOf: function() {
- stepThreeOccurs = true;
- if (stepFiveOccurs) {
- throw new Error("Step 5 occurred out of order");
- }
- return 20;
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ valueOf: function () {
+ stepThreeOccurs = true;
+ if (stepFiveOccurs) {
+ throw new Error("Step 5 occurred out of order");
+ }
+ return 20;
+ }
+ };
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
-Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
+ Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
assert(stepThreeOccurs, 'stepThreeOccurs !== true');
assert(stepFiveOccurs, 'stepFiveOccurs !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js
index b2a3da597..f3538884d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-28.js
@@ -9,14 +9,14 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var stepFiveOccurs = false;
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(undefined, undefined, fromIndex);
+ Array.prototype.lastIndexOf.call(undefined, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js
index f1fd8f73a..9d4e8f522 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-29.js
@@ -9,23 +9,23 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new RangeError();
- },
- configurable: true
-});
+ var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new RangeError();
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(RangeError, function() {
- Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
+ Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js
index 57bf7dfd4..5fccb2a9c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.15-5-3
description: Array.prototype.lastIndexOf when fromIndex is boolean
---*/
-var a = new Array(1, 2, 1);
+ var a = new Array(1,2,1);
-assert.sameValue(a.lastIndexOf(2, true), 1, 'true resolves to 1');
-assert.sameValue(a.lastIndexOf(2, false), -1, 'false resolves to 0');
+assert.sameValue(a.lastIndexOf(2,true), 1, 'true resolves to 1');
+assert.sameValue(a.lastIndexOf(2,false), -1, 'false resolves to 0');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js
index 4d0ad283f..92fef085d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-30.js
@@ -9,27 +9,27 @@ description: >
visible when an exception occurs
---*/
-var stepFiveOccurs = false;
+ var stepFiveOccurs = false;
-var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- valueOf: function() {
- throw new TypeError();
- }
- };
- },
- configurable: true
-});
+ var obj = {};
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ valueOf: function () {
+ throw new TypeError();
+ }
+ };
+ },
+ configurable: true
+ });
-var fromIndex = {
- valueOf: function() {
- stepFiveOccurs = true;
- return 0;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ stepFiveOccurs = true;
+ return 0;
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
+ Array.prototype.lastIndexOf.call(obj, undefined, fromIndex);
});
assert.sameValue(stepFiveOccurs, false, 'stepFiveOccurs');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js
index 66c4b8c01..11152525f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-31.js
@@ -9,7 +9,7 @@ description: >
non-integer, verify truncation occurs in the proper direction
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, 1.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, 1.5)');
assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, 1.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, 1.5)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js
index 75aed0966..db105484b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-32.js
@@ -9,7 +9,7 @@ description: >
non-integer, verify truncation occurs in the proper direction
---*/
-var targetObj = {};
+ var targetObj = {};
assert.sameValue([0, targetObj, true].lastIndexOf(targetObj, -2.5), 1, '[0, targetObj, true].lastIndexOf(targetObj, -2.5)');
assert.sameValue([0, true, targetObj].lastIndexOf(targetObj, -2.5), -1, '[0, true, targetObj].lastIndexOf(targetObj, -2.5)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js
index f581274c2..120641ec7 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-4.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.15-5-4
description: Array.prototype.lastIndexOf when fromIndex is undefined
---*/
-var a = new Array(1, 2, 1);
+ var a = new Array(1,2,1);
// undefined resolves to 0, no second argument resolves to len
-assert.sameValue(a.lastIndexOf(2, undefined), -1, 'a.lastIndexOf(2,undefined)');
-assert.sameValue(a.lastIndexOf(1, undefined), 0, 'a.lastIndexOf(1,undefined)');
+assert.sameValue(a.lastIndexOf(2,undefined), -1, 'a.lastIndexOf(2,undefined)');
+assert.sameValue(a.lastIndexOf(1,undefined), 0, 'a.lastIndexOf(1,undefined)');
assert.sameValue(a.lastIndexOf(1), 2, 'a.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js
index 72efdc307..38614daf9 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-5.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-5-5
description: Array.prototype.lastIndexOf when fromIndex is null
---*/
-var a = new Array(1, 2, 1);
+ var a = new Array(1,2,1);
// null resolves to 0
-assert.sameValue(a.lastIndexOf(2, null), -1, 'a.lastIndexOf(2,null)');
-assert.sameValue(a.lastIndexOf(1, null), 0, 'a.lastIndexOf(1,null)');
+assert.sameValue(a.lastIndexOf(2,null), -1, 'a.lastIndexOf(2,null)');
+assert.sameValue(a.lastIndexOf(1,null), 0, 'a.lastIndexOf(1,null)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js
index 033e078b3..e66f4a75e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-5-6.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-5-6
description: Array.prototype.lastIndexOf when 'fromIndex' isn't passed
---*/
-var arr = [0, 1, 2, 3, 4];
-//'fromIndex' will be set as 4 if not passed by default
+ var arr = [0, 1, 2, 3, 4];
+ //'fromIndex' will be set as 4 if not passed by default
assert.sameValue(arr.lastIndexOf(0), arr.lastIndexOf(0, 4), 'arr.lastIndexOf(0)');
assert.sameValue(arr.lastIndexOf(2), arr.lastIndexOf(2, 4), 'arr.lastIndexOf(2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js
index 87cf25f0c..efe30ad08 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-6-1.js
@@ -9,7 +9,7 @@ description: >
Array.length
---*/
-var a = new Array(1, 2, 3);
+ var a = new Array(1,2,3);
-assert.sameValue(a.lastIndexOf(3, 5.4), 2, 'a.lastIndexOf(3,5.4)');
-assert.sameValue(a.lastIndexOf(3, 3.1), 2, 'a.lastIndexOf(3,3.1)');
+assert.sameValue(a.lastIndexOf(3,5.4), 2, 'a.lastIndexOf(3,5.4)');
+assert.sameValue(a.lastIndexOf(3,3.1), 2, 'a.lastIndexOf(3,3.1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js
index 50f0225fa..f0d4f45ef 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-7-1.js
@@ -7,9 +7,9 @@ es5id: 15.4.4.15-7-1
description: Array.prototype.lastIndexOf with negative fromIndex
---*/
-var a = new Array(1, 2, 3);
+ var a = new Array(1,2,3);
-assert.sameValue(a.lastIndexOf(2, -2), 1, 'a.lastIndexOf(2,-2)');
-assert.sameValue(a.lastIndexOf(2, -3), -1, 'a.lastIndexOf(2,-3)');
-assert.sameValue(a.lastIndexOf(1, -5.3), -1, 'a.lastIndexOf(1,-5.3)');
+assert.sameValue(a.lastIndexOf(2,-2), 1, 'a.lastIndexOf(2,-2)');
+assert.sameValue(a.lastIndexOf(2,-3), -1, 'a.lastIndexOf(2,-3)');
+assert.sameValue(a.lastIndexOf(1,-5.3), -1, 'a.lastIndexOf(1,-5.3)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js
index ba9f6f41d..90b73979e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-1.js
@@ -7,13 +7,9 @@ es5id: 15.4.4.15-8-1
description: Array.prototype.lastIndexOf must return correct index(boolean)
---*/
-var obj = {
- toString: function() {
- return true
- }
-};
-var _false = false;
-var a = new Array(false, true, false, obj, _false, true, "true", undefined, 0, null, 1, "str", 0, 1);
+ var obj = {toString:function (){return true}};
+ var _false = false;
+ var a = new Array(false,true,false,obj,_false,true,"true", undefined,0,null,1,"str",0,1);
assert.sameValue(a.lastIndexOf(true), 5, 'a[5]=true');
assert.sameValue(a.lastIndexOf(false), 4, 'a[4] =_false');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js
index 91f6f3c01..c22552686 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-10.js
@@ -10,11 +10,7 @@ es5id: 15.4.4.15-8-10
description: Array.prototype.lastIndexOf must return correct index (NaN)
---*/
-var _NaN = NaN;
-var a = new Array("NaN", _NaN, NaN, undefined, 0, false, null, {
- toString: function() {
- return NaN
- }
-}, "false");
+ var _NaN = NaN;
+ var a = new Array("NaN",_NaN,NaN, undefined,0,false,null,{toString:function (){return NaN}},"false");
assert.sameValue(a.lastIndexOf(NaN), -1, 'NaN matches nothing, not even itself');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js
index 0fd222276..9e2f6d79a 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-11.js
@@ -9,14 +9,14 @@ description: >
changed by adding elements to the array during iteration
---*/
-var arr = [20];
+ var arr = [20];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr[1] = 1;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr[1] = 1;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(1), -1, 'arr.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js
index 51273ec3b..8dcc8e602 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-2.js
@@ -7,16 +7,12 @@ es5id: 15.4.4.15-8-2
description: Array.prototype.lastIndexOf must return correct index(Number)
---*/
-var obj = {
- toString: function() {
- return 0
- }
-};
-var one = 1;
-var _float = -(4 / 3);
-var a = new Array(+0, true, 0, -0, false, undefined, null, "0", obj, _float, -(4 / 3), -1.3333333333333, "str", one, 1, false);
+ var obj = {toString:function (){return 0}};
+ var one = 1;
+ var _float = -(4/3);
+ var a = new Array(+0,true,0,-0, false,undefined,null,"0",obj, _float,-(4/3),-1.3333333333333,"str",one, 1, false);
-assert.sameValue(a.lastIndexOf(-(4 / 3)), 10, 'a[10]=-(4/3)');
+assert.sameValue(a.lastIndexOf(-(4/3)), 10, 'a[10]=-(4/3)');
assert.sameValue(a.lastIndexOf(0), 3, 'a[3] = -0, but using === -0 and 0 are equal');
assert.sameValue(a.lastIndexOf(-0), 3, 'a[3] = -0');
assert.sameValue(a.lastIndexOf(1), 14, 'a[14] = 1');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js
index a1f22e7de..ba6b3e826 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-3.js
@@ -7,12 +7,8 @@ es5id: 15.4.4.15-8-3
description: Array.prototype.lastIndexOf must return correct index(string)
---*/
-var obj = {
- toString: function() {
- return "false"
- }
-};
-var szFalse = "false";
-var a = new Array(szFalse, "false", "false1", undefined, 0, false, null, 1, obj, 0);
+ var obj = {toString:function (){return "false"}};
+ var szFalse = "false";
+ var a = new Array(szFalse, "false","false1",undefined,0,false,null,1,obj,0);
assert.sameValue(a.lastIndexOf("false"), 1, 'a.lastIndexOf("false")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js
index e77e8d780..1c4050783 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-4.js
@@ -7,13 +7,9 @@ es5id: 15.4.4.15-8-4
description: Array.prototype.lastIndexOf must return correct index(undefined)
---*/
-var obj = {
- toString: function() {
- return undefined;
- }
-};
-var _undefined1 = undefined;
-var _undefined2;
-var a = new Array(_undefined1, _undefined2, undefined, true, 0, false, null, 1, "undefined", obj, 1);
+ var obj = {toString:function (){return undefined;}};
+ var _undefined1 = undefined;
+ var _undefined2;
+ var a = new Array(_undefined1,_undefined2,undefined,true,0,false,null,1,"undefined",obj,1);
assert.sameValue(a.lastIndexOf(undefined), 2, 'a.lastIndexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js
index 2aea2f8ee..afd59f8ac 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-5.js
@@ -7,21 +7,9 @@ es5id: 15.4.4.15-8-5
description: Array.prototype.lastIndexOf must return correct index(Object)
---*/
-var obj1 = {
- toString: function() {
- return "false"
- }
-};
-var obj2 = {
- toString: function() {
- return "false"
- }
-};
-var obj3 = obj1;
-var a = new Array(obj2, obj1, obj3, false, undefined, 0, false, null, {
- toString: function() {
- return "false"
- }
-}, "false");
+ var obj1 = {toString:function (){return "false"}};
+ var obj2 = {toString:function (){return "false"}};
+ var obj3 = obj1;
+ var a = new Array(obj2,obj1,obj3,false,undefined,0,false,null,{toString:function (){return "false"}},"false");
assert.sameValue(a.lastIndexOf(obj3), 2, 'a.lastIndexOf(obj3)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js
index 18b8888ee..c3e542c7c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-6.js
@@ -7,12 +7,8 @@ es5id: 15.4.4.15-8-6
description: Array.prototype.lastIndexOf must return correct index(null)
---*/
-var obj = {
- toString: function() {
- return null
- }
-};
-var _null = null;
-var a = new Array(true, undefined, 0, false, null, 1, "str", 0, 1, null, true, false, undefined, _null, "null", undefined, "str", obj);
+ var obj = {toString:function (){return null}};
+ var _null = null;
+ var a = new Array(true,undefined,0,false,null,1,"str",0,1,null,true,false,undefined,_null,"null",undefined,"str",obj);
assert.sameValue(a.lastIndexOf(null), 13, 'a.lastIndexOf(null)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js
index 543564a91..763dbfe40 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-7.js
@@ -9,8 +9,8 @@ description: >
reference)
---*/
-var a = new Array(0, 1, 2, 3);
-a[2] = a;
+ var a = new Array(0,1,2,3);
+ a[2] = a;
assert.sameValue(a.lastIndexOf(a), 2, 'a.lastIndexOf(a)');
assert.sameValue(a.lastIndexOf(3), 3, 'a.lastIndexOf(3)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js
index b5676e56d..1cb37a62d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-8.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.15-8-8
description: Array.prototype.lastIndexOf must return correct index (Array)
---*/
-var b = new Array("0,1");
-var a = new Array(0, b, "0,1", 3);
+ var b = new Array("0,1");
+ var a = new Array(0,b,"0,1",3);
assert.sameValue(a.lastIndexOf(b.toString()), 2, 'a.lastIndexOf(b.toString())');
assert.sameValue(a.lastIndexOf("0,1"), 2, 'a.lastIndexOf("0,1")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js
index c70075216..7c7026a1d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-9.js
@@ -9,15 +9,15 @@ description: >
Array)
---*/
-var a = new Array(0, 1);
-a[4294967294] = 2; // 2^32-2 - is max array element index
-a[4294967295] = 3; // 2^32-1 added as non-array element property
-a[4294967296] = 4; // 2^32 added as non-array element property
-a[4294967297] = 5; // 2^32+1 added as non-array element property
-// stop searching near the end in case implementation actually tries to test all missing elements!!
-a[4294967200] = 3;
-a[4294967201] = 4;
-a[4294967202] = 5;
+ var a = new Array(0,1);
+ a[4294967294] = 2; // 2^32-2 - is max array element index
+ a[4294967295] = 3; // 2^32-1 added as non-array element property
+ a[4294967296] = 4; // 2^32 added as non-array element property
+ a[4294967297] = 5; // 2^32+1 added as non-array element property
+ // stop searching near the end in case implementation actually tries to test all missing elements!!
+ a[4294967200] = 3;
+ a[4294967201] = 4;
+ a[4294967202] = 5;
assert.sameValue(a.lastIndexOf(2), 4294967294, 'a.lastIndexOf(2)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js
index 8da0ba48d..71fb4d1b5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-1.js
@@ -9,14 +9,14 @@ description: >
visible here
---*/
-var arr = {};
+ var arr = { };
-Object.defineProperty(arr, "length", {
- get: function() {
- arr[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ arr[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(arr, "length"), 2, 'Array.prototype.lastIndexOf.call(arr, "length")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js
index aa82dc85b..5dd88469d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-10.js
@@ -9,19 +9,19 @@ description: >
after current position are visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(6.99), 1, 'arr.lastIndexOf(6.99)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js
index c7bd8ed99..83d4ac5ce 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-11.js
@@ -9,23 +9,21 @@ description: >
property not to be visited on an Array-like object
---*/
-var arr = {
- length: 200
-};
+ var arr = { length: 200 };
-Object.defineProperty(arr, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "100", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "100", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(arr, 6.99), -1, 'Array.prototype.lastIndexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js
index e1b6e93de..00f8a44fe 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-12.js
@@ -9,21 +9,21 @@ description: >
property not to be visited on an Array
---*/
-var arr = [1, 2, 3, 4];
+ var arr = [1, 2, 3, 4];
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "3", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf("6.99"), -1, 'arr.lastIndexOf("6.99")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js
index 052114d92..df702ae21 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-13.js
@@ -10,19 +10,16 @@ description: >
Object
---*/
-var arr = {
- 2: 2,
- length: 20
-};
+ var arr = { 2: 2, length: 20 };
-Object.defineProperty(arr, "3", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), -1, 'Array.prototype.lastIndexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js
index 864c9a8fa..d86e21b9e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-14.js
@@ -9,16 +9,16 @@ description: >
causes prototype index property not to be visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "20", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "20", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.lastIndexOf(1), -1, 'arr.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js
index c9ed09f3a..a5ae27fef 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-15.js
@@ -10,21 +10,16 @@ description: >
on an Array-like object
---*/
-var arr = {
- 0: 0,
- 1: 111,
- 2: 2,
- length: 10
-};
+ var arr = { 0: 0, 1: 111, 2: 2, length: 10 };
-Object.defineProperty(arr, "6", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "6", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), 1, 'Array.prototype.lastIndexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js
index 49b6f786a..fce1f7c2c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-16.js
@@ -10,16 +10,16 @@ description: >
on an Array
---*/
-var arr = [0, 111, 2];
+ var arr = [0, 111, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.lastIndexOf(1), 1, 'arr.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js
index 5056ac8a2..f2bd2ff1f 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-17.js
@@ -9,14 +9,14 @@ description: >
index property not to be visited
---*/
-var arr = [0, 1, 2, "last", 4];
+ var arr = [0, 1, 2, "last", 4];
-Object.defineProperty(arr, "4", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf("last"), -1, 'arr.lastIndexOf("last")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js
index a34d8b58e..9202ce28e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-18.js
@@ -9,21 +9,21 @@ description: >
prototype property causes prototype index property to be visited
---*/
-var arr = [0, 1, 2, 3, 4];
+ var arr = [0, 1, 2, 3, 4];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf("prototype"), 2, 'arr.lastIndexOf("prototype")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js
index ca788c2bc..b5c018d0c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-19.js
@@ -10,21 +10,21 @@ description: >
flags: [noStrict]
---*/
-var arr = [0, 1, 2, 3];
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf("unconfigurable"), 2, 'arr.lastIndexOf("unconfigurable")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js
index 01d4e44db..416d33fc8 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-2.js
@@ -9,17 +9,15 @@ description: >
visible here on an Array-like object
---*/
-var arr = {
- length: 30
-};
-var targetObj = function() {};
+ var arr = { length: 30 };
+ var targetObj = function () { };
-var fromIndex = {
- valueOf: function() {
- arr[4] = targetObj;
- return 10;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ arr[4] = targetObj;
+ return 10;
+ }
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(arr, targetObj, fromIndex), 4, 'Array.prototype.lastIndexOf.call(arr, targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js
index 7ceda1ccd..e02d240e5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-3.js
@@ -9,15 +9,15 @@ description: >
visible here on an Array
---*/
-var arr = [];
-arr.length = 30;
-var targetObj = function() {};
+ var arr = [];
+ arr.length = 30;
+ var targetObj = function () { };
-var fromIndex = {
- valueOf: function() {
- arr[4] = targetObj;
- return 11;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ arr[4] = targetObj;
+ return 11;
+ }
+ };
assert.sameValue(arr.lastIndexOf(targetObj, fromIndex), 4, 'arr.lastIndexOf(targetObj, fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js
index 010ffb36d..2846cf6e9 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-4.js
@@ -9,16 +9,14 @@ description: >
visible here
---*/
-var arr = {
- 2: 6.99
-};
+ var arr = { 2: 6.99 };
-Object.defineProperty(arr, "length", {
- get: function() {
- delete arr[2];
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ delete arr[2];
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(arr, 6.99), -1, 'Array.prototype.lastIndexOf.call(arr, 6.99)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js
index cd592d237..4d1c2f8db 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-5.js
@@ -9,16 +9,13 @@ description: >
visible here on an Array-like object
---*/
-var arr = {
- 10: false,
- length: 30
-};
+ var arr = { 10: false, length: 30 };
-var fromIndex = {
- valueOf: function() {
- delete arr[10];
- return 15;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ delete arr[10];
+ return 15;
+ }
+ };
assert.sameValue(Array.prototype.lastIndexOf.call(arr, false, fromIndex), -1, 'Array.prototype.lastIndexOf.call(arr, false, fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js
index 6b23e07f8..0ad3830b3 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-6.js
@@ -9,15 +9,15 @@ description: >
visible here on an Array
---*/
-var arr = [];
-arr[10] = "10";
-arr.length = 20;
+ var arr = [];
+ arr[10] = "10";
+ arr.length = 20;
-var fromIndex = {
- valueOf: function() {
- delete arr[10];
- return 11;
- }
-};
+ var fromIndex = {
+ valueOf: function () {
+ delete arr[10];
+ return 11;
+ }
+ };
assert.sameValue(arr.lastIndexOf("10", fromIndex), -1, 'arr.lastIndexOf("10", fromIndex)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js
index e64cc5bab..af7fc70e5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-7.js
@@ -9,21 +9,19 @@ description: >
after current position are visited on an Array-like object
---*/
-var arr = {
- length: 8
-};
+ var arr = { length: 8 };
-Object.defineProperty(arr, "4", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(arr, 1), 1, 'Array.prototype.lastIndexOf.call(arr, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js
index ef7d6b674..c368ef570 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-8.js
@@ -9,19 +9,19 @@ description: >
after current position are visited on an Array
---*/
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(1), 1, 'arr.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js
index d0d856f61..412604d03 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js
@@ -10,21 +10,19 @@ description: >
object
---*/
-var arr = {
- length: 9
-};
+ var arr = { length: 9 };
-Object.defineProperty(arr, "4", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return Infinity;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return Infinity;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(arr, Infinity), 1, 'Array.prototype.lastIndexOf.call(arr, Infinity)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js
index 3dfe2ffa1..7a4e136a6 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-1.js
@@ -9,12 +9,7 @@ description: >
property on an Array-like object
---*/
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
+ var obj = { 0: 0, 1: 1, 2: 2, length: 3 };
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js
index b60f3beb3..38b41bddf 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-10.js
@@ -9,29 +9,27 @@ description: >
accessor property on an Array-like object
---*/
-var obj = {
- length: 3
-};
-Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var obj = { length: 3 };
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 0), 0, 'Array.prototype.lastIndexOf.call(obj, 0)');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, 1), 1, 'Array.prototype.lastIndexOf.call(obj, 1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js
index 6dfa28831..72eb04947 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-11.js
@@ -10,14 +10,14 @@ description: >
Array
---*/
-var arr = [];
+ var arr = [];
-Array.prototype[0] = false;
-Object.defineProperty(arr, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Array.prototype[0] = false;
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(true), 0, 'arr.lastIndexOf(true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js
index 739d80bb3..94fef7d4c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-12.js
@@ -10,16 +10,14 @@ description: >
Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.prototype[0] = false;
-Object.defineProperty(obj, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.prototype[0] = false;
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 0, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js
index 70462919d..bd077110e 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-13.js
@@ -10,20 +10,20 @@ description: >
an Array
---*/
-var arr = [];
+ var arr = [];
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(true), 0, 'arr.lastIndexOf(true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js
index 9662f75bd..9a326f9d4 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-14.js
@@ -10,22 +10,20 @@ description: >
an Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return true;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 0, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js
index 32c4149d8..e91eaf66b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-15.js
@@ -9,26 +9,26 @@ description: >
accessor property on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return 30;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return 30;
+ },
+ configurable: true
+ });
assert.sameValue([, , , ].lastIndexOf(10), 0, '[, , , ].lastIndexOf(10)');
assert.sameValue([, , , ].lastIndexOf(20), 1, '[, , , ].lastIndexOf(20)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js
index e8cb635fd..89205ee26 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-16.js
@@ -9,33 +9,27 @@ description: >
accessor property on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "2", {
- get: function() {
- return 30;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "2", {
+ get: function () {
+ return 30;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, 10), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, 10)');
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, 20), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, 20)');
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, 30), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, 30)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 10), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, 10)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 20), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, 20)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, 30), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, 30)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js
index dc14b777b..796abed7b 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-17.js
@@ -9,10 +9,10 @@ description: >
accessor property without a get function on an Array
---*/
-var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ var arr = [];
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(undefined), 0, 'arr.lastIndexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js
index 0a9e3a693..65fc004c5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-18.js
@@ -9,12 +9,10 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var obj = {
- length: 1
-};
-Object.defineProperty(obj, "0", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 1 };
+ Object.defineProperty(obj, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), 0, 'Array.prototype.lastIndexOf.call(obj, undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js
index d5ca0b3ee..3c9baf0af 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-19.js
@@ -10,20 +10,18 @@ description: >
inherited accessor property on an Array-like object
---*/
-var obj = {
- length: 1
-};
+ var obj = { length: 1 };
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return 20;
- },
- configurable: true
-});
-Object.defineProperty(obj, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return 20;
+ },
+ configurable: true
+ });
+ Object.defineProperty(obj, "0", {
+ set: function () { },
+ configurable: true
+ });
assert(obj.hasOwnProperty(0), 'obj.hasOwnProperty(0) !== true');
assert.sameValue(Array.prototype.lastIndexOf.call(obj, undefined), 0, 'Array.prototype.lastIndexOf.call(obj, undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js
index 1f0b70839..d0c826fd2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-20.js
@@ -10,18 +10,18 @@ description: >
inherited accessor property on an Array
---*/
-var arr = [, 1];
+ var arr = [, 1];
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 100;
- },
- configurable: true
-});
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 100;
+ },
+ configurable: true
+ });
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
assert(arr.hasOwnProperty(0), 'arr.hasOwnProperty(0) !== true');
assert.sameValue(arr.lastIndexOf(undefined), 0, 'arr.lastIndexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js
index ee64326c1..71304e777 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-21.js
@@ -9,9 +9,9 @@ description: >
accessor property without a get function on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue([, ].lastIndexOf(undefined), 0, '[, ].lastIndexOf(undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js
index 8dbf01f64..735c9cc7a 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-22.js
@@ -9,11 +9,9 @@ description: >
accessor property without a get function on an Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 1
-}, undefined), 0, 'Array.prototype.lastIndexOf.call({ length: 1 }, undefined)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 1 }, undefined), 0, 'Array.prototype.lastIndexOf.call({ length: 1 }, undefined)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js
index d6806a98e..eeb3f4653 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-25.js
@@ -10,9 +10,9 @@ description: >
less than number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) &&
- -1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) &&
+ -1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]);
+ };
assert(func(true), 'func(true) !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js
index b4066d733..b568be548 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-26.js
@@ -10,10 +10,10 @@ description: >
to number of parameters)
---*/
-var func = function(a, b) {
- return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) &&
- 1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]) &&
- -1 === Array.prototype.lastIndexOf.call(arguments, arguments[2]);
-};
+ var func = function (a, b) {
+ return 0 === Array.prototype.lastIndexOf.call(arguments, arguments[0]) &&
+ 1 === Array.prototype.lastIndexOf.call(arguments, arguments[1]) &&
+ -1 === Array.prototype.lastIndexOf.call(arguments, arguments[2]);
+ };
assert(func(0, true), 'func(0, true) !== true');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js
index 1d9f67863..7936ac8fb 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-27.js
@@ -10,7 +10,7 @@ description: >
greater than number of parameters)
---*/
-var func = function(a, b) {
+var func = function (a, b) {
assert.sameValue(Array.prototype.lastIndexOf.call(arguments, arguments[0]), 2);
assert.sameValue(Array.prototype.lastIndexOf.call(arguments, arguments[3]), 3);
assert.sameValue(Array.prototype.lastIndexOf.call(arguments, arguments[4]), -1);
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js
index d599c9fa4..aa3fa7818 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-28.js
@@ -9,26 +9,26 @@ description: >
subsequent iterations on an Array
---*/
-var preIterVisible = false;
-var arr = [];
+ var preIterVisible = false;
+ var arr = [];
-Object.defineProperty(arr, "2", {
- get: function() {
- preIterVisible = true;
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ preIterVisible = true;
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return true;
- } else {
- return false;
- }
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(true), 1, 'arr.lastIndexOf(true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js
index 59ada2f1d..e73976d93 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-29.js
@@ -9,28 +9,26 @@ description: >
subsequent iterations on an Array-like object
---*/
-var preIterVisible = false;
-var obj = {
- length: 3
-};
+ var preIterVisible = false;
+ var obj = { length: 3 };
-Object.defineProperty(obj, "2", {
- get: function() {
- preIterVisible = true;
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ preIterVisible = true;
+ return false;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return true;
- } else {
- return false;
- }
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return true;
+ } else {
+ return false;
+ }
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.lastIndexOf.call(obj, true), 1, 'Array.prototype.lastIndexOf.call(obj, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js
index 5b82efe11..b292c0f5c 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-3.js
@@ -9,6 +9,6 @@ description: >
property that overrides an inherited data property on an Array
---*/
-Array.prototype[0] = Object;
+ Array.prototype[0] = Object;
assert.sameValue([Object.prototype].lastIndexOf(Object.prototype), 0, '[Object.prototype].lastIndexOf(Object.prototype)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js
index 15b600383..251c5d428 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-30.js
@@ -9,24 +9,24 @@ description: >
exception on an Array
---*/
-var accessed = false;
-var arr = [];
+ var accessed = false;
+ var arr = [];
-Object.defineProperty(arr, "2", {
- get: function() {
- throw new TypeError();
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ throw new TypeError();
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- accessed = true;
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ accessed = true;
+ return true;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- arr.lastIndexOf(true);
+ arr.lastIndexOf(true);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js
index 0d46b3d56..933d72d12 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-31.js
@@ -9,26 +9,24 @@ description: >
exception on an Array-like object
---*/
-var accessed = false;
-var obj = {
- length: 3
-};
+ var accessed = false;
+ var obj = { length: 3 };
-Object.defineProperty(obj, "2", {
- get: function() {
- throw new TypeError();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ throw new TypeError();
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- accessed = true;
- return true;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ accessed = true;
+ return true;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.lastIndexOf.call(obj, true);
+ Array.prototype.lastIndexOf.call(obj, true);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js
index 220442370..8f6e11da4 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-4.js
@@ -10,10 +10,6 @@ description: >
Array-like object
---*/
-Object.prototype[0] = false;
+ Object.prototype[0] = false;
-assert.sameValue(Array.prototype.lastIndexOf.call({
- 0: true,
- 1: 1,
- length: 2
-}, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js
index aa6921e41..771fde968 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-5.js
@@ -9,11 +9,11 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
assert.sameValue([Number].lastIndexOf(Number), 0, '[Number].lastIndexOf(Number)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js
index 70e391419..8c2ec3379 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-6.js
@@ -10,15 +10,11 @@ description: >
Array-like object
---*/
-Object.defineProperty(Object.prototype, "0", {
- get: function() {
- return false;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "0", {
+ get: function () {
+ return false;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.lastIndexOf.call({
- 0: true,
- 1: 1,
- length: 2
-}, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true), 0, 'Array.prototype.lastIndexOf.call({ 0: true, 1: 1, length: 2 }, true)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js
index a3c2f4902..d38620b98 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-7.js
@@ -9,9 +9,9 @@ description: >
data property on an Array
---*/
-Array.prototype[0] = true;
-Array.prototype[1] = false;
-Array.prototype[2] = "true";
+ Array.prototype[0] = true;
+ Array.prototype[1] = false;
+ Array.prototype[2] = "true";
assert.sameValue([, , , ].lastIndexOf(true), 0, '[, , , ].lastIndexOf(true)');
assert.sameValue([, , , ].lastIndexOf(false), 1, '[, , , ].lastIndexOf(false)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js
index f06b7bfef..fbb0ea0bd 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-8.js
@@ -9,16 +9,10 @@ description: >
data property on an Array-like object
---*/
-Object.prototype[0] = true;
-Object.prototype[1] = false;
-Object.prototype[2] = "true";
+ Object.prototype[0] = true;
+ Object.prototype[1] = false;
+ Object.prototype[2] = "true";
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, true), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, true)');
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, false), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, false)');
-assert.sameValue(Array.prototype.lastIndexOf.call({
- length: 3
-}, "true"), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, "true")');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, true), 0, 'Array.prototype.lastIndexOf.call({ length: 3 }, true)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, false), 1, 'Array.prototype.lastIndexOf.call({ length: 3 }, false)');
+assert.sameValue(Array.prototype.lastIndexOf.call({ length: 3 }, "true"), 2, 'Array.prototype.lastIndexOf.call({ length: 3 }, "true")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js
index d5ff8a47a..a20c0fa5d 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-i-9.js
@@ -9,27 +9,27 @@ description: >
accessor property on an Array
---*/
-var arr = [, , , ];
-Object.defineProperty(arr, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var arr = [, , , ];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert.sameValue(arr.lastIndexOf(0), 0, 'arr.lastIndexOf(0)');
assert.sameValue(arr.lastIndexOf(1), 1, 'arr.lastIndexOf(1)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js
index 953212528..c88bf06b2 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-1.js
@@ -14,6 +14,4 @@ assert.sameValue(["0"].lastIndexOf(0), -1, '["0"].lastIndexOf(0)');
assert.sameValue([false].lastIndexOf(0), -1, '[false].lastIndexOf(0)');
assert.sameValue([undefined].lastIndexOf(0), -1, '[undefined].lastIndexOf(0)');
assert.sameValue([null].lastIndexOf(0), -1, '[null].lastIndexOf(0)');
-assert.sameValue([
- []
-].lastIndexOf(0), -1, '[[]].lastIndexOf(0)');
+assert.sameValue([[]].lastIndexOf(0), -1, '[[]].lastIndexOf(0)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js
index bbe793889..97cbb1fd4 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-ii-11.js
@@ -9,8 +9,8 @@ description: >
element are Objects, and they refer to the same object
---*/
-var obj1 = {};
-var obj2 = {};
-var obj3 = obj2;
+ var obj1 = {};
+ var obj2 = {};
+ var obj3 = obj2;
assert.sameValue([obj2, obj1].lastIndexOf(obj3), 0, '[obj2, obj1].lastIndexOf(obj3)');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js
index ae16fd014..5c1d0c670 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-b-iii-2.js
@@ -9,26 +9,26 @@ description: >
element once search value is found
---*/
-var arr = [2, 1, , 1, 2];
-var elementFirstAccessed = false;
-var elementThirdAccessed = false;
+ var arr = [2, 1, , 1, 2];
+ var elementFirstAccessed = false;
+ var elementThirdAccessed = false;
-Object.defineProperty(arr, "2", {
- get: function() {
- elementThirdAccessed = true;
- return 2;
- },
- configurable: true
-});
-Object.defineProperty(arr, "0", {
- get: function() {
- elementFirstAccessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ elementThirdAccessed = true;
+ return 2;
+ },
+ configurable: true
+ });
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ elementFirstAccessed = true;
+ return 2;
+ },
+ configurable: true
+ });
-arr.lastIndexOf(2);
+ arr.lastIndexOf(2);
assert.sameValue(elementThirdAccessed, false, 'elementThirdAccessed');
assert.sameValue(elementFirstAccessed, false, 'elementFirstAccessed');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js
index 2c4b6a094..8f70daaf5 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-1.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.15-9-1
description: Array.prototype.lastIndexOf returns -1 for elements not present
---*/
-var a = new Array();
-a[100] = 1;
-a[99999] = "";
-a[10] = new Object();
-a[5555] = 5.5;
-a[123456] = "str";
-a[5] = 1E+309;
+ var a = new Array();
+ a[100] = 1;
+ a[99999] = "";
+ a[10] = new Object();
+ a[5555] = 5.5;
+ a[123456] = "str";
+ a[5] = 1E+309;
assert.sameValue(a.lastIndexOf(1), 100, 'a.lastIndexOf(1)');
assert.sameValue(a.lastIndexOf(""), 99999, 'a.lastIndexOf("")');
diff --git a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js
index e756e32f0..2c47880f4 100644
--- a/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js
+++ b/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-9-2.js
@@ -9,18 +9,11 @@ description: >
not access any other properties
---*/
-var accessed = false;
-var f = {
- length: 0
-};
-Object.defineProperty(f, "0", {
- get: function() {
- accessed = true;
- return 1;
- }
-});
+ var accessed = false;
+ var f = {length: 0};
+ Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}});
-var i = Array.prototype.lastIndexOf.call(f, 1);
+ var i = Array.prototype.lastIndexOf.call(f,1);
assert.sameValue(i, -1, 'i');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js
index 15edce5b1..84d3f60de 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.map - applied to undefined
assert.throws(TypeError, function() {
- Array.prototype.map.call(undefined); // TypeError is thrown if value is undefined
+ Array.prototype.map.call(undefined); // TypeError is thrown if value is undefined
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js
index 52eb839eb..abe500666 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-10.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-1-10
description: Array.prototype.map - applied to the Math object
---*/
-function callbackfn(val, idx, obj) {
- return ('[object Math]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(val, idx, obj) {
+ return ('[object Math]' === Object.prototype.toString.call(obj));
+ }
-Math.length = 1;
-Math[0] = 1;
-var testResult = Array.prototype.map.call(Math, callbackfn);
+ Math.length = 1;
+ Math[0] = 1;
+ var testResult = Array.prototype.map.call(Math, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js
index 485851119..bf14fa9a5 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-11.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-11
description: Array.prototype.map - applied to Date object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Date;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Date;
+ }
-var obj = new Date();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js
index ed40782e8..ff7c0430c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-12.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-12
description: Array.prototype.map - applied to RegExp object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof RegExp;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof RegExp;
+ }
-var obj = new RegExp();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new RegExp();
+ obj.length = 1;
+ obj[0] = 1;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js
index a17d877bd..72f36faed 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-13.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-1-13
description: Array.prototype.map - applied to the JSON object
---*/
-function callbackfn(val, idx, obj) {
- return ('[object JSON]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(val, idx, obj) {
+ return ('[object JSON]' === Object.prototype.toString.call(obj));
+ }
-JSON.length = 1;
-JSON[0] = 1;
-var testResult = Array.prototype.map.call(JSON, callbackfn);
+ JSON.length = 1;
+ JSON[0] = 1;
+ var testResult = Array.prototype.map.call(JSON, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js
index 2fc430d6d..0beb4afa9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-14.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-14
description: Array.prototype.map - applied to Error object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Error;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Error;
+ }
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js
index a8774bf2f..2dd146e2a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-15.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.19-1-15
description: Array.prototype.map - applied to the Arguments object
---*/
-function callbackfn(val, idx, obj) {
- return ('[object Arguments]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(val, idx, obj) {
+ return ('[object Arguments]' === Object.prototype.toString.call(obj));
+ }
-var obj = (function() {
- return arguments;
-}("a", "b"));
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js
index 864d017a0..45316ee3e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.map - applied to null
assert.throws(TypeError, function() {
- Array.prototype.map.call(null); // TypeError is thrown if value is null
+ Array.prototype.map.call(null); // TypeError is thrown if value is null
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js
index 3566c0ee4..94d84f8f9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-3.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.19-1-3
description: Array.prototype.map - applied to boolean primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-Boolean.prototype[0] = true;
-Boolean.prototype.length = 1;
+ Boolean.prototype[0] = true;
+ Boolean.prototype.length = 1;
-var testResult = Array.prototype.map.call(false, callbackfn);
+ var testResult = Array.prototype.map.call(false, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js
index 82e9e614e..0fd3c3f00 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-4.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.19-1-4
description: Array.prototype.map - applied to Boolean object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js
index 6a04e9177..15ef1ec6d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-5.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.19-1-5
description: Array.prototype.map - applied to number primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-Number.prototype[0] = 1;
-Number.prototype.length = 1;
+ Number.prototype[0] = 1;
+ Number.prototype.length = 1;
-var testResult = Array.prototype.map.call(2.5, callbackfn);
+ var testResult = Array.prototype.map.call(2.5, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js
index ac9c03bca..e27b6cabb 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-6.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.19-1-6
description: Array.prototype.map - applied to Number object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js
index 402368ebd..ca3f32049 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-7.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.19-1-7
description: Array.prototype.map - applied to string primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
-var testResult = Array.prototype.map.call("abc", callbackfn);
+ var testResult = Array.prototype.map.call("abc", callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js
index 93ca61e4f..aef3b6dcc 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-8.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-1-8
description: Array.prototype.map - applied to String object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
-var obj = new String("abc");
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var obj = new String("abc");
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js
index 82f5918aa..73438cef4 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-1-9.js
@@ -7,17 +7,17 @@ es5id: 15.4.4.19-1-9
description: Array.prototype.map - applied to Function object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Function;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Function;
+ }
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js
index 9e89b6d85..19e77252c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-1.js
@@ -9,17 +9,17 @@ description: >
is an own data property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+ };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js
index 9a74b1e09..431968e00 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-10.js
@@ -9,27 +9,27 @@ description: >
inherited accessor property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js
index c026c6971..c0766d9bc 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-11.js
@@ -9,19 +9,19 @@ description: >
is an own accessor property without a get function
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js
index 93d0ceada..2aebd50d9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-12.js
@@ -10,26 +10,23 @@ description: >
overrides an inherited accessor property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 12,
- 1: 11
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 0: 12, 1: 11 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js
index 756b3754f..6c59cd21a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-13.js
@@ -9,23 +9,23 @@ description: >
'length' is inherited accessor property without a get function
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js
index 6b3f22609..430de1525 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-14.js
@@ -9,15 +9,12 @@ description: >
'length' property doesn't exist
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js
index 28607e1b6..04fd19b43 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-17.js
@@ -9,14 +9,14 @@ description: >
implements its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var func = function(a, b) {
- return Array.prototype.map.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.map.call(arguments, callbackfn);
+ };
-var testResult = func(12, 11);
+ var testResult = func(12, 11);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js
index 16f307c0f..524012db2 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-18.js
@@ -9,13 +9,13 @@ description: >
its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return parseInt(val, 10) > 1;
-}
+ function callbackfn(val, idx, obj) {
+ return parseInt(val, 10) > 1;
+ }
-var str = new String("432");
+ var str = new String("432");
-String.prototype[3] = "1";
-var testResult = Array.prototype.map.call(str, callbackfn);
+ String.prototype[3] = "1";
+ var testResult = Array.prototype.map.call(str, callbackfn);
assert.sameValue(testResult.length, 3, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js
index c2dbc89e3..60be78877 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-19.js
@@ -9,17 +9,17 @@ description: >
its own property get method
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 12;
-fun[1] = 11;
-fun[2] = 9;
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 12;
+ fun[1] = 11;
+ fun[2] = 9;
-var testResult = Array.prototype.map.call(fun, callbackfn);
+ var testResult = Array.prototype.map.call(fun, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js
index 46aa6c4fb..028b0c6e0 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-2.js
@@ -9,10 +9,10 @@ description: >
Array
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var testResult = [12, 11].map(callbackfn);
+ var testResult = [12, 11].map(callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js
index 4c6c6b18d..c6170291e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-3.js
@@ -9,23 +9,21 @@ description: >
own data property that overrides an inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js
index eab5b1cb3..3eff1cd3b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-4.js
@@ -9,13 +9,13 @@ description: >
overrides an inherited data property on an Array
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
-var arrProtoLen;
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
+ var arrProtoLen;
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
-var testResult = [12, 11].map(callbackfn);
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
+ var testResult = [12, 11].map(callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js
index a636e0655..144505d75 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-5.js
@@ -9,31 +9,31 @@ description: >
own data property that overrides an inherited accessor property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
-
-var testResult = Array.prototype.map.call(child, callbackfn);
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js
index 1cd5e51a2..a08231572 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-6.js
@@ -9,22 +9,20 @@ description: >
inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js
index 6853ad8d3..da80f49cb 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-7.js
@@ -9,23 +9,23 @@ description: >
own accessor property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-obj[0] = 12;
-obj[1] = 11;
-obj[2] = 9;
+ obj[0] = 12;
+ obj[1] = 11;
+ obj[2] = 9;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js
index abbf6ab28..45029cd39 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-8.js
@@ -9,30 +9,28 @@ description: >
own accessor property that overrides an inherited data property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js
index 043d20e1b..f587d696f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-2-9.js
@@ -10,35 +10,35 @@ description: >
property
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js
index 364277255..4318f25ad 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-1.js
@@ -7,14 +7,12 @@ es5id: 15.4.4.19-3-1
description: Array.prototype.map - value of 'length' is undefined
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- length: undefined
-};
+ var obj = { length: undefined };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js
index ec607589a..513b39734 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-10.js
@@ -7,15 +7,12 @@ es5id: 15.4.4.19-3-10
description: Array.prototype.map - value of 'length' is a number (value is NaN)
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 9,
- length: NaN
-};
+ var obj = { 0: 9, length: NaN };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js
index 78210aa74..aaa124406 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-11.js
@@ -9,17 +9,12 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "2"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "2" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js
index a355dc5b2..ca5eb14e6 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-12.js
@@ -9,17 +9,12 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "-4294967294"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "-4294967294" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js
index 704ea0f16..5c0236679 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-13.js
@@ -9,17 +9,12 @@ description: >
convert to number primitive (value is a decimal number)
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "2.5"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "2.5" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js
index 1b57ec367..7d77ddf00 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-14.js
@@ -7,14 +7,11 @@ es5id: 15.4.4.19-3-14
description: Array.prototype.map - 'length' is a string containing Infinity
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 9,
- length: "Infinity"
-};
+ var obj = { 0: 9, length: "Infinity" };
assert.throws(RangeError, function() {
- Array.prototype.map.call(obj, callbackfn);
+ Array.prototype.map.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js
index 100952bcd..180be9ffb 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-15.js
@@ -9,17 +9,12 @@ description: >
exponential number
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "2E0"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "2E0" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js
index d227a73ec..4190366af 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-16.js
@@ -7,17 +7,12 @@ es5id: 15.4.4.19-3-16
description: Array.prototype.map - 'length' is a string containing a hex number
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "0x0002"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "0x0002" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js
index 5c7446c41..bf7622835 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-17.js
@@ -9,17 +9,12 @@ description: >
number with leading zeros
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- 2: 12,
- length: "0002.00"
-};
+ var obj = { 0: 11, 1: 9, 2: 12, length: "0002.00" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js
index bbd1b8b5a..887e79992 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-18.js
@@ -9,14 +9,12 @@ description: >
convert to a number
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- length: "asdf!_"
-};
+ var obj = { length: "asdf!_" };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js
index 2f5e2b414..4a181897f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-19.js
@@ -9,21 +9,21 @@ description: >
own toString method
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
+ var obj = {
+ 0: 11,
+ 1: 9,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js
index 0dae4ae48..dc6edd021 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-2.js
@@ -9,15 +9,12 @@ description: >
(length overridden to true(type conversion))
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: true
-};
+ var obj = { 0: 11, length: true };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 1, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js
index bc431d8a7..e98040385 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-20.js
@@ -9,21 +9,21 @@ description: >
own valueOf method
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
+ var obj = {
+ 0: 11,
+ 1: 9,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js
index fb22c7355..d1df6df8e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-21.js
@@ -10,29 +10,29 @@ description: >
returns a string
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var firstStepOccured = false;
-var secondStepOccured = false;
-var obj = {
- 0: 11,
- 1: 9,
+ var firstStepOccured = false;
+ var secondStepOccured = false;
+ var obj = {
+ 0: 11,
+ 1: 9,
- length: {
- valueOf: function() {
- firstStepOccured = true;
- return {};
- },
- toString: function() {
- secondStepOccured = true;
- return '2';
- }
- }
-};
+ length: {
+ valueOf: function () {
+ firstStepOccured = true;
+ return {};
+ },
+ toString: function () {
+ secondStepOccured = true;
+ return '2';
+ }
+ }
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert(firstStepOccured, 'firstStepOccured !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js
index a7825b1c1..3365cf226 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-22.js
@@ -10,23 +10,23 @@ description: >
primitive values
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 1: 11,
- 2: 12,
+ var obj = {
+ 1: 11,
+ 2: 12,
- length: {
- valueOf: function() {
- return {};
- },
- toString: function() {
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ return {};
+ },
+ toString: function () {
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.map.call(obj, callbackfn);
+ Array.prototype.map.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js
index 44269d081..69eb09631 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-23.js
@@ -9,37 +9,37 @@ description: >
an object with an own toString and inherited valueOf methods
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var valueOfAccessed = false;
-var toStringAccessed = false;
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
-var obj = {
- 0: 11,
- 1: 9,
- length: child
-};
+ var obj = {
+ 0: 11,
+ 1: 9,
+ length: child
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js
index 870a5631c..829ee0697 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-24.js
@@ -9,16 +9,16 @@ description: >
ensure truncation occurs in the proper direction
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2.685
-};
+ var obj = {
+ 0: 11,
+ 1: 9,
+ length: 2.685
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js
index 3c7138f67..07ed728fc 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-25.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.19-3-25
description: Array.prototype.map - value of 'length' is a negative non-integer
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: -4294967294.5
-};
+ var obj = {
+ 0: 11,
+ 1: 9,
+ length: -4294967294.5
+ };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js
index b4c3e3b31..4c0c98486 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-28.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.19-3-28
description: Array.prototype.map - value of 'length' is boundary value (2^32)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 12,
- length: 4294967296
-};
+ var obj = {
+ 0: 12,
+ length: 4294967296
+ };
assert.throws(RangeError, function() {
- var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js
index 613ab9c8e..647d3c24d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-29.js
@@ -9,15 +9,15 @@ description: >
1)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 4294967297
-};
+ var obj = {
+ 0: 11,
+ 1: 9,
+ length: 4294967297
+ };
assert.throws(RangeError, function() {
- var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js
index 096a0c323..bc926871d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-3.js
@@ -7,15 +7,12 @@ es5id: 15.4.4.19-3-3
description: Array.prototype.map - value of 'length' is a number (value is 0)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: 0
-};
+ var obj = { 0: 11, length: 0 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js
index c3d6fbc9c..d0a34ea14 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-4.js
@@ -7,15 +7,12 @@ es5id: 15.4.4.19-3-4
description: Array.prototype.map - value of 'length' is a number (value is +0)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: +0
-};
+ var obj = { 0: 11, length: +0 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js
index d467cfe17..d9409340f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-5.js
@@ -7,15 +7,12 @@ es5id: 15.4.4.19-3-5
description: Array.prototype.map - value of 'length' is a number (value is -0)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: -0
-};
+ var obj = { 0: 11, length: -0 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js
index 794464e22..6efbf8d0b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-6.js
@@ -9,17 +9,12 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 10,
- 1: 12,
- 2: 9,
- length: 2
-};
+ var obj = { 0: 10, 1: 12, 2: 9, length: 2 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 2, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js
index a5215ce4f..c4b0f1bd4 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-7.js
@@ -9,17 +9,12 @@ description: >
number
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 10,
- 1: 12,
- 2: 9,
- length: -4294967294
-};
+ var obj = { 0: 10, 1: 12, 2: 9, length: -4294967294 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js
index 3677932af..626578477 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-8.js
@@ -9,14 +9,11 @@ description: >
Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 9,
- length: Infinity
-};
+ var obj = { 0: 9, length: Infinity };
assert.throws(RangeError, function() {
- Array.prototype.map.call(obj, callbackfn);
+ Array.prototype.map.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js
index a97e6065e..be3cdf24c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-3-9.js
@@ -9,15 +9,12 @@ description: >
-Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return val < 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val < 10;
+ }
-var obj = {
- 0: 9,
- length: -Infinity
-};
+ var obj = { 0: 9, length: -Infinity };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr.length, 0, 'newArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js
index fc826857a..417b73aba 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-1
description: Array.prototype.map throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map();
+ arr.map();
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js
index 74bc39127..0b449aa21 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-10.js
@@ -9,18 +9,15 @@ description: >
thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.map.call(obj, undefined);
+ Array.prototype.map.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js
index 5723ab3ed..2c9041b64 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-11.js
@@ -9,22 +9,19 @@ description: >
thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.map.call(obj, undefined);
+ Array.prototype.map.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js
index 45d301f5f..68bc27855 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-12.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.19-4-12
description: Array.prototype.map - 'callbackfn' is a function
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var testResult = [11, 9].map(callbackfn);
+ var testResult = [11, 9].map(callbackfn);
assert.sameValue(testResult.length, 2, 'testResult.length');
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js
index 3df2d5ab4..2d440b206 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-15.js
@@ -9,28 +9,26 @@ description: >
passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.map.call(obj);
+ Array.prototype.map.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js
index 1da77da81..b23921071 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.map(foo);
+ arr.map(foo);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js
index d6e5f8d34..2dd6ecef6 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-3
description: Array.prototype.map throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map(null);
+ arr.map(null);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js
index fe8918bfc..fe5eb72aa 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-4
description: Array.prototype.map throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map(true);
+ arr.map(true);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js
index b6c230364..0c7a6d5e3 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-5
description: Array.prototype.map throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map(5);
+ arr.map(5);
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js
index df6ccdb90..bebc2b020 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.19-4-6
description: Array.prototype.map throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map("abc");
+ arr.map("abc");
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js
index d795447cb..a52fc2c2b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-7.js
@@ -9,7 +9,7 @@ description: >
without Call internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.map(new Object());
+ arr.map(new Object());
});
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js
index f7914a941..d9126d50a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-8.js
@@ -9,21 +9,18 @@ description: >
when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.map.call(obj, null);
+ Array.prototype.map.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js
index 03ecedcc6..5a28ad017 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-4-9.js
@@ -9,25 +9,22 @@ description: >
when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.map.call(obj, null);
+ Array.prototype.map.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js
index a2e997d8b..913202845 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-1-s.js
@@ -8,14 +8,14 @@ description: Array.prototype.map - thisArg not passed to strict callbackfn
flags: [noStrict]
---*/
-var innerThisCorrect = false;
+ var innerThisCorrect = false;
-function callbackfn(val, idx, obj) {
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
-[1].map(callbackfn);
+ [1].map(callbackfn);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js
index a2b7393a9..c9e19110c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-1.js
@@ -8,17 +8,17 @@ description: Array.prototype.map - thisArg not passed
flags: [noStrict]
---*/
-this._15_4_4_19_5_1 = true;
+ this._15_4_4_19_5_1 = true;
(function() {
- var _15_4_4_19_5_1 = false;
+ var _15_4_4_19_5_1 = false;
- function callbackfn(val, idx, obj) {
- return this._15_4_4_19_5_1;
- }
- var srcArr = [1];
- var resArr = srcArr.map(callbackfn);
+ function callbackfn(val, idx, obj) {
+ return this._15_4_4_19_5_1;
+ }
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn);
- assert.sameValue(resArr[0], true, 'resArr[0]');
+assert.sameValue(resArr[0], true, 'resArr[0]');
})();
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js
index a2c4d150b..04fca72a6 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-10.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-10
description: Array.prototype.map - Array object can be used as thisArg
---*/
-var objArray = new Array(2);
+ var objArray = new Array(2);
-function callbackfn(val, idx, obj) {
- return this === objArray;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objArray;
+ }
-var testResult = [11].map(callbackfn, objArray);
+ var testResult = [11].map(callbackfn, objArray);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js
index 98cd84ad1..945db32b6 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-11.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-11
description: Array.prototype.map - String object can be used as thisArg
---*/
-var objString = new String();
+ var objString = new String();
-function callbackfn(val, idx, obj) {
- return this === objString;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objString;
+ }
-var testResult = [11].map(callbackfn, objString);
+ var testResult = [11].map(callbackfn, objString);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js
index 0fbcf8f7a..a6bbce103 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-12.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-12
description: Array.prototype.map - Boolean object can be used as thisArg
---*/
-var objBoolean = new Boolean();
+ var objBoolean = new Boolean();
-function callbackfn(val, idx, obj) {
- return this === objBoolean;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objBoolean;
+ }
-var testResult = [11].map(callbackfn, objBoolean);
+ var testResult = [11].map(callbackfn, objBoolean);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js
index a02c29a9e..23db7ce3a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-13.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-13
description: Array.prototype.map - Number object can be used as thisArg
---*/
-var objNumber = new Number();
+ var objNumber = new Number();
-function callbackfn(val, idx, obj) {
- return this === objNumber;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objNumber;
+ }
-var testResult = [11].map(callbackfn, objNumber);
+ var testResult = [11].map(callbackfn, objNumber);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js
index 01a23927a..a845aa77a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-14.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-14
description: Array.prototype.map - the Math object can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === Math;
-}
+ function callbackfn(val, idx, obj) {
+ return this === Math;
+ }
-var testResult = [11].map(callbackfn, Math);
+ var testResult = [11].map(callbackfn, Math);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js
index 9dd98f582..84e7c7b78 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-15.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-15
description: Array.prototype.map - Date object can be used as thisArg
---*/
-var objDate = new Date();
+ var objDate = new Date();
-function callbackfn(val, idx, obj) {
- return this === objDate;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objDate;
+ }
-var testResult = [11].map(callbackfn, objDate);
+ var testResult = [11].map(callbackfn, objDate);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js
index f34254d01..b7a738427 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-16.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-16
description: Array.prototype.map - RegExp object can be used as thisArg
---*/
-var objRegExp = new RegExp();
+ var objRegExp = new RegExp();
-function callbackfn(val, idx, obj) {
- return this === objRegExp;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objRegExp;
+ }
-var testResult = [11].map(callbackfn, objRegExp);
+ var testResult = [11].map(callbackfn, objRegExp);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js
index 42d67bbef..acc8b9d40 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-17.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-17
description: Array.prototype.map - the JSON object can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === JSON;
-}
+ function callbackfn(val, idx, obj) {
+ return this === JSON;
+ }
-var testResult = [11].map(callbackfn, JSON);
+ var testResult = [11].map(callbackfn, JSON);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js
index e3032b4f4..9b65b9c5b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-18.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-18
description: Array.prototype.map - Error object can be used as thisArg
---*/
-var objError = new RangeError();
+ var objError = new RangeError();
-function callbackfn(val, idx, obj) {
- return this === objError;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objError;
+ }
-var testResult = [11].map(callbackfn, objError);
+ var testResult = [11].map(callbackfn, objError);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js
index c2740c110..2da89ea4f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-19.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.19-5-19
description: Array.prototype.map - the Arguments object can be used as thisArg
---*/
-var arg;
+ var arg;
-function callbackfn(val, idx, obj) {
- return this === arg;
-}
+ function callbackfn(val, idx, obj) {
+ return this === arg;
+ }
-arg = (function() {
- return arguments;
-}(1, 2, 3));
+ arg = (function () {
+ return arguments;
+ }(1, 2, 3));
-var testResult = [11].map(callbackfn, arg);
+ var testResult = [11].map(callbackfn, arg);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js
index fdb667af1..6bbeebe52 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-2.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.19-5-2
description: Array.prototype.map - thisArg is Object
---*/
-var res = false;
-var o = new Object();
-o.res = true;
+ var res = false;
+ var o = new Object();
+ o.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var srcArr = [1];
-var resArr = srcArr.map(callbackfn, o);
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn,o);
assert.sameValue(resArr[0], true, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js
index 0f105c52c..f101b1660 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-21.js
@@ -8,11 +8,10 @@ description: Array.prototype.map - the global object can be used as thisArg
---*/
var global = this;
+ function callbackfn(val, idx, obj) {
+ return this === global;
+ }
-function callbackfn(val, idx, obj) {
- return this === global;
-}
-
-var testResult = [11].map(callbackfn, this);
+ var testResult = [11].map(callbackfn, this);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js
index 1386aa749..9ef42b64e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-22.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-22
description: Array.prototype.map - boolean primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === false;
+ }
-var testResult = [11].map(callbackfn, false);
+ var testResult = [11].map(callbackfn, false);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js
index 8e7ee9835..29f99094a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-23.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-23
description: Array.prototype.map - number primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === 101;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === 101;
+ }
-var testResult = [11].map(callbackfn, 101);
+ var testResult = [11].map(callbackfn, 101);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js
index cb29707e6..292dca579 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-24.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-24
description: Array.prototype.map - string primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === "abc";
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === "abc";
+ }
-var testResult = [11].map(callbackfn, "abc");
+ var testResult = [11].map(callbackfn, "abc");
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js
index 97dd1e728..08e3e062b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-3.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.19-5-3
description: Array.prototype.map - thisArg is Array
---*/
-var res = false;
-var a = new Array();
-a.res = true;
+ var res = false;
+ var a = new Array();
+ a.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var srcArr = [1];
-var resArr = srcArr.map(callbackfn, a);
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn,a);
assert.sameValue(resArr[0], true, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js
index 85ee3deec..36c4c36ff 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-4.js
@@ -9,18 +9,17 @@ description: >
template(prototype)
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.prototype.res = true;
+ var f = new foo();
-function foo() {}
-foo.prototype.res = true;
-var f = new foo();
-
-var srcArr = [1];
-var resArr = srcArr.map(callbackfn, f);
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn,f);
assert.sameValue(resArr[0], true, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js
index 9568cc3d4..2e1168549 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-5.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.19-5-5
description: Array.prototype.map - thisArg is object from object template
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ var f = new foo();
+ f.res = true;
-function foo() {}
-var f = new foo();
-f.res = true;
-
-var srcArr = [1];
-var resArr = srcArr.map(callbackfn, f);
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn,f);
assert.sameValue(resArr[0], true, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js
index 20366e19c..8950f71db 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-6.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.19-5-6
description: Array.prototype.map - thisArg is function
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.res = true;
-function foo() {}
-foo.res = true;
-
-var srcArr = [1];
-var resArr = srcArr.map(callbackfn, foo);
+ var srcArr = [1];
+ var resArr = srcArr.map(callbackfn,foo);
assert.sameValue(resArr[0], true, 'resArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js
index 7f11fa676..7bd84eb59 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-7.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-5-7
description: Array.prototype.map - built-in functions can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === eval;
-}
+ function callbackfn(val, idx, obj) {
+ return this === eval;
+ }
-var testResult = [11].map(callbackfn, eval);
+ var testResult = [11].map(callbackfn, eval);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js
index 31f536819..247bfb3c3 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-5-9.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.19-5-9
description: Array.prototype.map - Function object can be used as thisArg
---*/
-var objFunction = function() {};
+ var objFunction = function () { };
-function callbackfn(val, idx, obj) {
- return this === objFunction;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objFunction;
+ }
-var testResult = [11].map(callbackfn, objFunction);
+ var testResult = [11].map(callbackfn, objFunction);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js
index b72e54a44..2c86c43b8 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-6-1.js
@@ -9,6 +9,6 @@ description: >
argument is the ourput array
---*/
-var newArr = [11].map(function() {});
+ var newArr = [11].map(function () { });
assert(Array.isArray(newArr), 'Array.isArray(newArr) !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js
index 593496d85..1acfec147 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-6-2.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.19-6-2
description: Array.prototype.map - the returned array is instanceof Array
---*/
-var newArr = [11].map(function() {});
+ var newArr = [11].map(function () { });
assert(newArr instanceof Array, 'newArr instanceof Array !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js
index 07255dc87..eeb0830e8 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-1.js
@@ -9,14 +9,14 @@ description: >
after it is called
---*/
-function callbackfn(val, idx, obj)
-{
- srcArr[2] = 3;
- srcArr[5] = 6;
- return 1;
-}
+ function callbackfn(val, idx, obj)
+ {
+ srcArr[2] = 3;
+ srcArr[5] = 6;
+ return 1;
+ }
-var srcArr = [1, 2, , 4, 5];
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [1,2,,4,5];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js
index 17ff67f93..f1bbd8be5 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-2.js
@@ -9,17 +9,17 @@ description: >
it is called
---*/
-function callbackfn(val, idx, obj)
-{
- srcArr[4] = -1;
- if (val > 0)
- return 1;
- else
- return 0;
-}
+ function callbackfn(val, idx, obj)
+ {
+ srcArr[4] = -1;
+ if(val > 0)
+ return 1;
+ else
+ return 0;
+ }
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
assert.sameValue(resArr[4], 0, 'resArr[4]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js
index 10ef81567..3b6e5a675 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-3.js
@@ -9,18 +9,18 @@ description: >
the call
---*/
-function callbackfn(val, idx, obj)
-{
- delete srcArr[4];
- if (val > 0)
- return 1;
- else
- return 0;
+ function callbackfn(val, idx, obj)
+ {
+ delete srcArr[4];
+ if(val > 0)
+ return 1;
+ else
+ return 0;
-}
+ }
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
assert.sameValue(resArr[4], undefined, 'resArr[4]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js
index e488c8149..5962cdd90 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-4.js
@@ -9,17 +9,16 @@ description: >
Array.length is decreased
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ srcArr.length = 2;
+ callCnt++;
+ return 1;
+ }
-function callbackfn(val, idx, obj)
-{
- srcArr.length = 2;
- callCnt++;
- return 1;
-}
-
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 5, 'resArr.length');
assert.sameValue(callCnt, 2, 'callCnt');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js
index 969ef76b0..85747416a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-5.js
@@ -9,19 +9,18 @@ description: >
sparse array
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ srcArr[1000] = 3;
+ callCnt++;
+ return val;
+ }
-function callbackfn(val, idx, obj)
-{
- srcArr[1000] = 3;
- callCnt++;
- return val;
-}
-
-var srcArr = new Array(10);
-srcArr[1] = 1;
-srcArr[2] = 2;
-var resArr = srcArr.map(callbackfn);
+ var srcArr = new Array(10);
+ srcArr[1] = 1;
+ srcArr[2] = 2;
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 10, 'resArr.length');
assert.sameValue(callCnt, 2, 'callCnt');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js
index 1a3d4c175..131558eb4 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-6.js
@@ -9,20 +9,20 @@ description: >
when same index is also present in prototype
---*/
-function callbackfn(val, idx, obj)
-{
- delete srcArr[4];
- if (val > 0)
- return 1;
- else
- return 0;
+ function callbackfn(val, idx, obj)
+ {
+ delete srcArr[4];
+ if(val > 0)
+ return 1;
+ else
+ return 0;
-}
+ }
-Array.prototype[4] = 5;
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.map(callbackfn);
-delete Array.prototype[4];
+ Array.prototype[4] = 5;
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.map(callbackfn);
+ delete Array.prototype[4];
assert.sameValue(resArr.length, 5, 'resArr.length');
assert.sameValue(resArr[4], 1, 'resArr[4]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js
index 537e153f5..02da272f1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-7.js
@@ -7,18 +7,18 @@ es5id: 15.4.4.19-8-7
description: Array.prototype.map successful to delete the object in callbackfn
---*/
-var obj = {};
-obj.srcArr = [1, 2, 3, 4, 5];
+ var obj = {};
+ obj.srcArr = [1, 2, 3, 4, 5];
-function callbackfn(val, idx, obj) {
- delete obj.srcArr;
- if (val > 0)
- return 1;
- else
- return 0;
-}
+ function callbackfn(val, idx, obj) {
+ delete obj.srcArr;
+ if (val > 0)
+ return 1;
+ else
+ return 0;
+ }
-var resArr = obj.srcArr.map(callbackfn);
+ var resArr = obj.srcArr.map(callbackfn);
assert.sameValue(resArr.toString(), "1,1,1,1,1", 'resArr.toString()');
assert.sameValue(obj.hasOwnProperty("arr"), false, 'obj.hasOwnProperty("arr")');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js
index 0a9f95ed4..6b3d7146d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-8.js
@@ -9,20 +9,15 @@ description: >
on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ var obj = { 0: 11, 1: 12, length: 0 };
-var obj = {
- 0: 11,
- 1: 12,
- length: 0
-};
-
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js
index 5f47a3a63..397d7a9ff 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-9.js
@@ -9,24 +9,23 @@ description: >
of iterations on an Array
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(val, idx, obj) {
+ called += 1;
+ return val > 10;
+ }
-function callbackfn(val, idx, obj) {
- called += 1;
- return val > 10;
-}
+ var arr = [9, , 12];
-var arr = [9, , 12];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 8;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 8;
- },
- configurable: true
-});
-
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult.length, 3, 'testResult.length');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js
index ff4a57e8a..1c9aa86a7 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-1.js
@@ -9,17 +9,16 @@ description: >
assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return 1;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return 1;
-}
-
-var srcArr = new Array(10);
-srcArr[1] = undefined; //explicitly assigning a value
-var resArr = srcArr.map(callbackfn);
+ var srcArr = new Array(10);
+ srcArr[1] = undefined; //explicitly assigning a value
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr.length, 10, 'resArr.length');
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js
index 18ef426fb..040c0b852 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-10.js
@@ -9,24 +9,21 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-function callbackfn(val, idx, obj) {
- return idx === 1 && typeof val === "undefined";
-}
-var obj = {
- 2: 2,
- length: 20
-};
+ function callbackfn(val, idx, obj) {
+ return idx === 1 && typeof val === "undefined";
+ }
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 20, 'testResult.length');
assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js
index d194b572b..58fccded0 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-11.js
@@ -9,21 +9,21 @@ description: >
prototype index property not to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- return idx === 1 && typeof val === "undefined";
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ return idx === 1 && typeof val === "undefined";
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-var testResult = arr.map(callbackfn);
+ Array.prototype[1] = 1;
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult.length, 3, 'testResult.length');
assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js
index 8d6fd84c8..0f5e4fc68 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-12.js
@@ -10,29 +10,24 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 3) {
- return false;
- } else {
- return true;
- }
-}
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 10
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 3) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var obj = { 0: 0, 1: 1, 2: 2, length: 10 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 3;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ Object.prototype[1] = 3;
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js
index 7cea73c73..f510e09e2 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-13.js
@@ -9,24 +9,24 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 3) {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 3) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 3;
-var testResult = arr.map(callbackfn);
+ Array.prototype[1] = 3;
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js
index 45131bd9a..ddef903df 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-14.js
@@ -9,20 +9,20 @@ description: >
property not to be visited
---*/
-function callbackfn(val, idx, obj) {
- return idx === 3 && typeof val === "undefined";
-}
+ function callbackfn(val, idx, obj) {
+ return idx === 3 && typeof val === "undefined";
+ }
-var arr = [0, 1, 2, "last"];
+ var arr = [0, 1, 2, "last"];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(typeof testResult[3], "undefined", 'typeof testResult[3]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js
index 2cf1762a5..1ed9f5ad3 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-15.js
@@ -9,31 +9,31 @@ description: >
property causes prototype index property to be visited
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult.length, 3, 'testResult.length');
assert.sameValue(testResult[2], false, 'testResult[2]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js
index 5e5290fdd..b12e1aab0 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-16.js
@@ -10,32 +10,32 @@ description: >
flags: [noStrict]
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult.length, 3, 'testResult.length');
assert.sameValue(testResult[2], false, 'testResult[2]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js
index 74108f092..bc7018536 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-2.js
@@ -7,24 +7,24 @@ es5id: 15.4.4.19-8-b-2
description: Array.prototype.map - added properties in step 2 are visible here
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "length") {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "length") {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[2], false, 'testResult[2]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js
index 957b9048a..1377383e1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-3.js
@@ -7,26 +7,23 @@ es5id: 15.4.4.19-8-b-3
description: Array.prototype.map - deleted properties in step 2 are visible here
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2) {
- return false;
- } else {
- return true;
- }
-}
-var obj = {
- 2: 6.99,
- 8: 19
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 2) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var obj = { 2: 6.99, 8: 19 };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[2];
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 10;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(typeof testResult[2], "undefined", 'typeof testResult[2]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js
index bf1e739fb..8e166666d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-4.js
@@ -9,32 +9,30 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js
index c0ca4d259..a38050144 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-5.js
@@ -9,30 +9,30 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js
index 6f983455e..2f12f0c1e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-6.js
@@ -9,31 +9,29 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return false;
- } else {
- return true;
- }
-}
-var obj = {
- length: 2
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js
index 5e40ddb27..fe1b0998c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-7.js
@@ -9,29 +9,29 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return false;
- } else {
- return true;
- }
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js
index 58f3ac9c1..1dd61b31e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-8.js
@@ -9,33 +9,31 @@ description: >
not to be visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return false;
- } else {
- return true;
- }
-}
-var obj = {
- length: 2
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var obj = { length: 2 };
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js
index a1dd861f2..1d0cc7640 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-b-9.js
@@ -9,31 +9,31 @@ description: >
not to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return false;
- } else {
- return true;
- }
-}
-var arr = [1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+ var arr = [1, 2];
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(typeof testResult[1], "undefined", 'typeof testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js
index 16b3fe326..8543d0ead 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-1.js
@@ -9,20 +9,17 @@ description: >
on an Array-like object
---*/
-var kValue = {};
+ var kValue = {};
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
-var obj = {
- 5: kValue,
- length: 100
-};
+ var obj = { 5: kValue, length: 100 };
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr[5], true, 'newArr[5]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js
index f9809a1a5..ccf8d3fbd 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-10.js
@@ -9,24 +9,24 @@ description: >
property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js
index db7bfa03d..5e8f0eba5 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-11.js
@@ -10,32 +10,29 @@ description: >
Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {
- 0: 5,
- length: 2
-};
+ var proto = { 0: 5, length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js
index 9f61f72be..b23347737 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-12.js
@@ -9,26 +9,26 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Array.prototype[0] = 11;
+ Array.prototype[0] = 11;
-Object.defineProperty(arr, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js
index 3ca3d54de..47c8e86c5 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-13.js
@@ -10,38 +10,36 @@ description: >
Array-like object
---*/
-var kValue = "abc";
-
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
-
-var proto = {
- length: 2
-};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-Object.defineProperty(child, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
-
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var kValue = "abc";
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var proto = { length: 2 };
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
+
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js
index 148bf9dbc..57580015d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-14.js
@@ -9,31 +9,31 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var kValue = "abc";
-
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
-
-var arr = [];
-
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
-
-var testResult = arr.map(callbackfn);
+ var kValue = "abc";
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var arr = [];
+
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
+
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js
index 590dbe8bd..ada617c65 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-15.js
@@ -9,31 +9,29 @@ description: >
accessor property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-Object.defineProperty(proto, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js
index 8be14c2d2..78714aeab 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-16.js
@@ -9,22 +9,22 @@ description: >
accessor property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var testResult = [, ].map(callbackfn);
+ var testResult = [, ].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js
index 9c0a96b09..2e3f9f987 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-17.js
@@ -9,22 +9,20 @@ description: >
property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js
index 142b2878d..fda5968c7 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-18.js
@@ -9,20 +9,20 @@ description: >
property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "1", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js
index f20dbc098..7589e4c13 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-19.js
@@ -10,27 +10,27 @@ description: >
accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 100;
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js
index b3c0686e2..e9fb0f558 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-2.js
@@ -9,17 +9,17 @@ description: >
on an Array
---*/
-var kValue = {};
+ var kValue = {};
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [kValue];
+ var arr = [kValue];
-var newArr = arr.map(callbackfn);
+ var newArr = arr.map(callbackfn);
assert.sameValue(newArr[0], true, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js
index 79faa2295..d73b92a01 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-20.js
@@ -10,33 +10,33 @@ description: >
accessor property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
-
-var proto = {};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-
-Object.defineProperty(child, "0", {
- set: function() {},
- configurable: true
-});
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 100;
- },
- configurable: true
-});
-
-var testResult = Array.prototype.map.call(child, callbackfn);
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
+
+ var proto = {};
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+
+ Object.defineProperty(child, "0", {
+ set: function () { },
+ configurable: true
+ });
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 100;
+ },
+ configurable: true
+ });
+
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js
index d7e36fc41..09387d328 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-21.js
@@ -9,26 +9,24 @@ description: >
accessor property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var proto = {
- length: 2
-};
-Object.defineProperty(proto, "0", {
- set: function() {},
- configurable: true
-});
+ var proto = { length: 2 };
+ Object.defineProperty(proto, "0", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js
index 1a4ba76c0..c45f502b2 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-22.js
@@ -9,18 +9,18 @@ description: >
accessor property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
-var testResult = [, ].map(callbackfn);
+ var testResult = [,].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js
index 74fd1615f..41cff6af1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-25.js
@@ -10,18 +10,18 @@ description: >
less than number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.map.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.map.call(arguments, callbackfn);
+ };
-var testResult = func(9);
+ var testResult = func(9);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js
index 66bb23233..bf4e46b1d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-26.js
@@ -10,21 +10,21 @@ description: >
number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 9;
- } else if (idx === 1) {
- return val === 11;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 9;
+ } else if (idx === 1) {
+ return val === 11;
+ } else {
+ return false;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.map.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.map.call(arguments, callbackfn);
+ };
-var testResult = func(9, 11);
+ var testResult = func(9, 11);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js
index c47bd08c3..3140c2b3b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-27.js
@@ -10,24 +10,24 @@ description: >
greater than number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 9;
- } else if (idx === 1) {
- return val === 11;
- } else if (idx === 2) {
- return val === 12;
- } else {
- return false;
- }
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 9;
+ } else if (idx === 1) {
+ return val === 11;
+ } else if (idx === 2) {
+ return val === 12;
+ } else {
+ return false;
+ }
-}
+ }
-var func = function(a, b) {
- return Array.prototype.map.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.map.call(arguments, callbackfn);
+ };
-var testResult = func(9, 11, 12);
+ var testResult = func(9, 11, 12);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js
index 142bcdd8d..ba96bfa5b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-28.js
@@ -9,39 +9,39 @@ description: >
iterations is observed on an Array
---*/
-var preIterVisible = false;
-var arr = [];
+ var preIterVisible = false;
+ var arr = [];
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- } else if (idx === 1) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ } else if (idx === 1) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 11;
- }
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 11;
+ }
+ },
+ configurable: true
+ });
-var testResult = arr.map(callbackfn);
+ var testResult = arr.map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js
index 9d97893b8..4e034ba2c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-29.js
@@ -9,41 +9,39 @@ description: >
iterations is observed on an Array-like object
---*/
-var preIterVisible = false;
-var obj = {
- length: 2
-};
+ var preIterVisible = false;
+ var obj = { length: 2 };
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- } else if (idx === 1) {
- return val === 9;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ } else if (idx === 1) {
+ return val === 9;
+ } else {
+ return false;
+ }
+ }
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 9;
- } else {
- return 11;
- }
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 9;
+ } else {
+ return 11;
+ }
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js
index dac643e4e..f3d9e7dd9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-3.js
@@ -9,26 +9,23 @@ description: >
that overrides an inherited data property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {
- 5: 12,
- length: 10
-};
+ var proto = { 5: 12, length: 10 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[5] = kValue;
+ var child = new Con();
+ child[5] = kValue;
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[5], true, 'testResult[5]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js
index cae9865e2..d9cec7c6b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-30.js
@@ -9,35 +9,30 @@ description: >
terminate iteration on an Array-like object
---*/
-var obj = {
- 0: 11,
- 5: 10,
- 10: 8,
- length: 20
-};
-var accessed = false;
+ var obj = { 0: 11, 5: 10, 10: 8, length: 20 };
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ }
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- get: function() {
- accessed = true;
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ accessed = true;
+ return 100;
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.map.call(obj, callbackfn);
+ Array.prototype.map.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js
index 094568212..6923f6d8f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-31.js
@@ -9,33 +9,33 @@ description: >
terminate iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ }
-var arr = [];
-arr[5] = 10;
-arr[10] = 100;
+ var arr = [];
+ arr[5] = 10;
+ arr[10] = 100;
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- accessed = true;
- return 100;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ accessed = true;
+ return 100;
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.map(callbackfn);
+ arr.map(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js
index cf77e3796..192dd3f4d 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-4.js
@@ -9,17 +9,17 @@ description: >
that overrides an inherited data property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-Array.prototype[0] = 11;
+ Array.prototype[0] = 11;
-var testResult = [kValue].map(callbackfn);
+ var testResult = [kValue].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js
index cf2c63c9b..70b85169b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-5.js
@@ -10,34 +10,34 @@ description: >
object
---*/
-var kValue = "abc";
-
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "5", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 10;
-Object.defineProperty(child, "5", {
- value: kValue,
- configurable: true
-});
-
-var testResult = Array.prototype.map.call(child, callbackfn);
+ var kValue = "abc";
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "5", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 10;
+ Object.defineProperty(child, "5", {
+ value: kValue,
+ configurable: true
+ });
+
+ var testResult = Array.prototype.map.call(child, callbackfn);
assert.sameValue(testResult[5], true, 'testResult[5]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js
index 4c9ae7776..c7970fc48 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-6.js
@@ -9,22 +9,22 @@ description: >
that overrides an inherited accessor property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 9;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 9;
+ },
+ configurable: true
+ });
-var testResult = [kValue].map(callbackfn);
+ var testResult = [kValue].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js
index 908e1e6b1..9a2b37c7b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-7.js
@@ -9,25 +9,22 @@ description: >
property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {
- 5: kValue,
- length: 10
-};
+ var proto = { 5: kValue, length: 10 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-var newArr = Array.prototype.map.call(child, callbackfn);
+ var newArr = Array.prototype.map.call(child, callbackfn);
assert.sameValue(newArr[5], true, 'newArr[5]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js
index 03d312b30..45597f7ea 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-8.js
@@ -9,15 +9,15 @@ description: >
property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === 13;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === 13;
+ }
+ return false;
+ }
-Array.prototype[1] = 13;
+ Array.prototype[1] = 13;
-var newArr = [, , , ].map(callbackfn);
+ var newArr = [, , , ].map(callbackfn);
assert.sameValue(newArr[1], true, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js
index 2d58d345f..ac0a9750c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-i-9.js
@@ -9,26 +9,24 @@ description: >
property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "0", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js
index 94a0fad1d..d5ad9c8f9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-1.js
@@ -7,19 +7,18 @@ es5id: 15.4.4.19-8-c-ii-1
description: Array.prototype.map - callbackfn called with correct parameters
---*/
-var bPar = true;
-var bCalled = false;
+ var bPar = true;
+ var bCalled = false;
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(obj[idx] !== val)
+ bPar = false;
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (obj[idx] !== val)
- bPar = false;
-}
-
-var srcArr = [0, 1, true, null, new Object(), "five"];
-srcArr[999999] = -6.6;
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [0,1,true,null,new Object(),"five"];
+ srcArr[999999] = -6.6;
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js
index 546a84142..2602ab100 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-10.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-10
description: Array.prototype.map - callbackfn is called with 1 formal parameter
---*/
-function callbackfn(val) {
- return val > 10;
-}
+ function callbackfn(val) {
+ return val > 10;
+ }
-var testResult = [11].map(callbackfn);
+ var testResult = [11].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js
index 503c65ad3..4bfbc76db 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-11.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-11
description: Array.prototype.map - callbackfn is called with 2 formal parameters
---*/
-function callbackfn(val, idx) {
- return (val > 10 && arguments[2][idx] === val);
-}
+ function callbackfn(val, idx) {
+ return (val > 10 && arguments[2][idx] === val);
+ }
-var testResult = [11].map(callbackfn);
+ var testResult = [11].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js
index d97ab0707..8919089d1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-12.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-12
description: Array.prototype.map - callbackfn is called with 3 formal parameters
---*/
-function callbackfn(val, idx, obj) {
- return (val > 10 && obj[idx] === val);
-}
+ function callbackfn(val, idx, obj) {
+ return (val > 10 && obj[idx] === val);
+ }
-var testResult = [11].map(callbackfn);
+ var testResult = [11].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js
index cf89b2259..35523402a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-13.js
@@ -9,10 +9,10 @@ description: >
parameter value
---*/
-function callbackfn() {
- return arguments[2][arguments[1]] === arguments[0];
-}
+ function callbackfn() {
+ return arguments[2][arguments[1]] === arguments[0];
+ }
-var testResult = [11].map(callbackfn);
+ var testResult = [11].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js
index bc4d4dce5..be5f0d3c7 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-16.js
@@ -9,15 +9,12 @@ description: >
a boolean primitive)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === false;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn, false);
+ var testResult = Array.prototype.map.call(obj, callbackfn, false);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js
index e095ed03e..dd16accb1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-17.js
@@ -9,15 +9,12 @@ description: >
a number)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === 5;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === 5;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn, 5);
+ var testResult = Array.prototype.map.call(obj, callbackfn, 5);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js
index 90501719b..2fbb0a5b1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-18.js
@@ -9,15 +9,12 @@ description: >
a string primitive)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === "hello!";
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === "hello!";
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn, "hello!");
+ var testResult = Array.prototype.map.call(obj, callbackfn, "hello!");
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js
index a638a3126..58f038dbc 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-19.js
@@ -7,24 +7,20 @@ es5id: 15.4.4.19-8-c-ii-19
description: Array.prototype.map - non-indexed properties are not called.
---*/
-var called = 0;
-var result = false;
+ var called = 0;
+ var result = false;
-function callbackfn(val, idx, obj) {
- called++;
- if (val === 11) {
- result = true;
- }
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ if (val === 11) {
+ result = true;
+ }
+ return true;
+ }
-var obj = {
- 0: 9,
- non_index_property: 11,
- length: 20
-};
+ var obj = { 0: 9, non_index_property: 11, length: 20 };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(result, false, 'result');
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js
index 34a8c1a41..b405b41c5 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-2.js
@@ -7,18 +7,17 @@ es5id: 15.4.4.19-8-c-ii-2
description: Array.prototype.map - callbackfn takes 3 arguments
---*/
-var parCnt = 3;
-var bCalled = false
+ var parCnt = 3;
+ var bCalled = false
+ function callbackfn(val, idx, obj)
+ {
+ bCalled = true;
+ if(arguments.length !== 3)
+ parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
+ }
-function callbackfn(val, idx, obj)
-{
- bCalled = true;
- if (arguments.length !== 3)
- parCnt = arguments.length; //verify if callbackfn was called with 3 parameters
-}
-
-var srcArr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-var resArr = srcArr.map(callbackfn);
+ var srcArr = [0,1,2,3,4,5,6,7,8,9];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(bCalled, true, 'bCalled');
assert.sameValue(parCnt, 3, 'parCnt');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js
index 96f50c481..ddb585762 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-20.js
@@ -9,20 +9,14 @@ description: >
(thisArg is correct)
---*/
-function callbackfn(val, idx, obj) {
- return this.threshold === 10;
-}
+ function callbackfn(val, idx, obj) {
+ return this.threshold === 10;
+ }
-var thisArg = {
- threshold: 10
-};
+ var thisArg = { threshold: 10 };
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
+ var obj = { 0: 11, 1: 9, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn, thisArg);
+ var testResult = Array.prototype.map.call(obj, callbackfn, thisArg);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js
index 50cd9a2cd..b4f908ac8 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-21.js
@@ -9,25 +9,21 @@ description: >
(kValue is correct)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- }
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ }
- if (idx === 1) {
- return val === 12;
- }
+ if (idx === 1) {
+ return val === 12;
+ }
- return false;
-}
+ return false;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js
index a5a30861a..7da27f9ee 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-22.js
@@ -9,25 +9,21 @@ description: >
(the index k is correct)
---*/
-function callbackfn(val, idx, obj) {
- if (val === 11) {
- return idx === 0;
- }
+ function callbackfn(val, idx, obj) {
+ if (val === 11) {
+ return idx === 0;
+ }
- if (val === 12) {
- return idx === 1;
- }
+ if (val === 12) {
+ return idx === 1;
+ }
- return false;
-}
+ return false;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
assert.sameValue(testResult[1], true, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js
index fd1431705..78575602e 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-23.js
@@ -9,15 +9,12 @@ description: >
(this object O is correct)
---*/
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
-function callbackfn(val, idx, o) {
- return obj === o;
-}
+ function callbackfn(val, idx, o) {
+ return obj === o;
+ }
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js
index 5fe857f93..b47ecdde1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-4.js
@@ -7,21 +7,20 @@ es5id: 15.4.4.19-8-c-ii-4
description: Array.prototype.map - k values are passed in acending numeric order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = 0;
-var called = 0;
-var result = true;
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = 0;
+ var called = 0;
+ var result = true;
+ function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ result = false;
+ } else {
+ lastIdx++;
+ }
+ }
-function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- result = false;
- } else {
- lastIdx++;
- }
-}
-
-arr.map(callbackfn);
+ arr.map(callbackfn);
assert(result, 'result !== true');
assert.sameValue(arr.length, called, 'arr.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js
index d0d8859c6..fa7136b47 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-5.js
@@ -9,24 +9,24 @@ description: >
and not prior to starting the loop.
---*/
-var kIndex = [];
+ var kIndex = [];
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- //Each position should be visited one time, which means k is accessed one time during iterations.
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
- return true;
- }
- kIndex[idx] = 1;
- return false;
- } else {
- return true;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
+ return true;
+ }
+ kIndex[idx] = 1;
+ return false;
+ } else {
+ return true;
+ }
+ }
-var testResult = [11, 12, 13, 14].map(callbackfn);
+ var testResult = [11, 12, 13, 14].map(callbackfn);
assert.sameValue(testResult.length, 4, 'testResult.length');
assert.sameValue(testResult[0], false, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js
index 7ac9796c3..880856724 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-6.js
@@ -7,19 +7,16 @@ es5id: 15.4.4.19-8-c-ii-6
description: Array.prototype.map - arguments to callbackfn are self consistent.
---*/
-var obj = {
- 0: 11,
- length: 1
-};
-var thisArg = {};
+ var obj = { 0: 11, length: 1 };
+ var thisArg = {};
-function callbackfn() {
- return this === thisArg &&
- arguments[0] === 11 &&
- arguments[1] === 0 &&
- arguments[2] === obj;
-}
+ function callbackfn() {
+ return this === thisArg &&
+ arguments[0] === 11 &&
+ arguments[1] === 0 &&
+ arguments[2] === obj;
+ }
-var testResult = Array.prototype.map.call(obj, callbackfn, thisArg);
+ var testResult = Array.prototype.map.call(obj, callbackfn, thisArg);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js
index 0ae5970fe..346adb6c9 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-7.js
@@ -9,24 +9,19 @@ description: >
terminate iteration
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 0) {
- accessed = true;
- }
- if (idx === 0) {
- throw new Error("Exception occurred in callbackfn");
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 0) {
+ accessed = true;
+ }
+ if (idx === 0) {
+ throw new Error("Exception occurred in callbackfn");
+ }
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Error, function() {
- Array.prototype.map.call(obj, callbackfn);
+ Array.prototype.map.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js
index e4e4d231d..467f3589a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-8.js
@@ -9,19 +9,15 @@ description: >
iterations is observed
---*/
-var obj = {
- 0: 9,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 9, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- if (idx === 0) {
- obj[idx + 1] = 8;
- }
- return val > 10;
-}
+ function callbackfn(val, idx, o) {
+ if (idx === 0) {
+ obj[idx + 1] = 8;
+ }
+ return val > 10;
+ }
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult[1], false, 'testResult[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js
index 3554ac85b..88f74819a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-ii-9.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.19-8-c-ii-9
description: Array.prototype.map - callbackfn with 0 formal parameter
---*/
-function callbackfn() {
- return true;
-}
+ function callbackfn() {
+ return true;
+ }
-var testResult = [11].map(callbackfn);
+ var testResult = [11].map(callbackfn);
assert.sameValue(testResult[0], true, 'testResult[0]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js
index 5f759befb..b3fa6ffcc 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-1.js
@@ -9,14 +9,14 @@ description: >
returned array element
---*/
-function callbackfn(val, idx, obj) {
- if (val % 2)
- return (2 * val + 1);
- else
- return (val / 2);
-}
-var srcArr = [0, 1, 2, 3, 4];
-var resArr = srcArr.map(callbackfn);
+ function callbackfn(val, idx, obj){
+ if(val % 2)
+ return (2 * val + 1);
+ else
+ return (val / 2);
+ }
+ var srcArr = [0,1,2,3,4];
+ var resArr = srcArr.map(callbackfn);
assert(resArr.length > 0, 'resArr.length > 0');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js
index 6f5cbb81b..999460193 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-2.js
@@ -9,16 +9,12 @@ description: >
'mappedValue'
---*/
-function callbackfn(val, idx, obj) {
- return val;
-}
+ function callbackfn(val, idx, obj) {
+ return val;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(newArr[0], obj[0], 'newArr[0]');
assert.sameValue(newArr[1], obj[1], 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js
index 7525d1b0c..fed4c1424 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-3.js
@@ -9,18 +9,14 @@ description: >
overwritten
---*/
-function callbackfn(val, idx, obj) {
- return 11;
-}
+ function callbackfn(val, idx, obj) {
+ return 11;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.map.call(obj, callbackfn);
-var tempVal = newArr[1];
-newArr[1] += 1;
+ var tempVal = newArr[1];
+ newArr[1] += 1;
assert.notSameValue(newArr[1], tempVal, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js
index 4b918884d..f15aad4f1 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-4.js
@@ -9,24 +9,21 @@ description: >
enumerated
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var obj = { 0: 11, length: 2 };
+ var newArr = Array.prototype.map.call(obj, callbackfn);
-var prop;
-var enumerable = false;
-for (prop in newArr) {
- if (newArr.hasOwnProperty(prop)) {
- if (prop === "0") {
- enumerable = true;
- }
- }
-}
+ var prop;
+ var enumerable = false;
+ for (prop in newArr) {
+ if (newArr.hasOwnProperty(prop)) {
+ if (prop === "0") {
+ enumerable = true;
+ }
+ }
+ }
assert(enumerable, 'enumerable !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js
index 44eaea59e..4bb7b42ff 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-8-c-iii-5.js
@@ -9,19 +9,15 @@ description: >
changed or deleted
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-var newArr = Array.prototype.map.call(obj, callbackfn);
+ var obj = { 0: 11, 1: 9, length: 2 };
+ var newArr = Array.prototype.map.call(obj, callbackfn);
-var tempVal = newArr[1];
-delete newArr[1];
+ var tempVal = newArr[1];
+ delete newArr[1];
assert.notSameValue(tempVal, undefined, 'tempVal');
assert.sameValue(newArr[1], undefined, 'newArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js
index a9cb1f51e..daabdf4cb 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-1.js
@@ -9,12 +9,12 @@ description: >
on
---*/
-function callbackfn(val, idx, obj)
-{
- return true;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr.map(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return true;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr.map(callbackfn);
assert.sameValue(srcArr[0], 1, 'srcArr[0]');
assert.sameValue(srcArr[1], 2, 'srcArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js
index 5407e1ee9..1b1854f44 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-10.js
@@ -9,22 +9,22 @@ description: >
(subclassed Array, length overridden with obj with valueOf)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var Foo = function() {};
-Foo.prototype = [1, 2, 3];
-var obj = new Foo();
-obj.length = {
- valueOf: function() {
- return 0;
- }
-};
+ var Foo = function () { };
+ Foo.prototype = [1, 2, 3];
+ var obj = new Foo();
+ obj.length = {
+ valueOf: function () {
+ return 0;
+ }
+ };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js
index aa0fd8891..f8c6a295f 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-11.js
@@ -10,26 +10,26 @@ description: >
(toString))
---*/
-function Foo() {}
-Foo.prototype = [1, 2, 3];
+ function Foo() { }
+ Foo.prototype = [1, 2, 3];
-var f = new Foo();
+ var f = new Foo();
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ var o = {
+ toString: function () {
+ return '0';
+ }
+ };
+ f.length = o;
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-function cb() {}
-var a = Array.prototype.map.call(f, cb);
+ function cb() { }
+ var a = Array.prototype.map.call(f, cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
assert.sameValue(a.length, 0, 'a.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js
index 9ae64cd57..41b4e362b 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-12.js
@@ -9,28 +9,28 @@ description: >
(subclassed Array, length overridden with [])
---*/
-function Foo() {}
-Foo.prototype = [1, 2, 3];
-var f = new Foo();
+ function Foo() { }
+ Foo.prototype = [1, 2, 3];
+ var f = new Foo();
-f.length = [];
+ f.length = [];
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-function cb() {}
-var a = Array.prototype.map.call(f, cb);
+ function cb() { }
+ var a = Array.prototype.map.call(f, cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
assert.sameValue(a.length, 0, 'a.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js
index f84a937ee..d4c208ccd 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-13.js
@@ -9,16 +9,16 @@ description: >
functions, O is unmodified
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val > 2;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val > 2;
+ }
-var arr = [1, 2, 3, 4];
+ var arr = [1, 2, 3, 4];
-arr.map(callbackfn);
+ arr.map(callbackfn);
assert.sameValue(arr[0], 1, 'arr[0]');
assert.sameValue(arr[1], 2, 'arr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js
index cc3657e87..c876d7f0a 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-2.js
@@ -9,12 +9,12 @@ description: >
and values the result of callbackfn
---*/
-function callbackfn(val, idx, obj)
-{
- return val + 10;
-}
-var srcArr = [1, 2, 3, 4, 5];
-var resArr = srcArr.map(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return val + 10;
+ }
+ var srcArr = [1,2,3,4,5];
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(resArr[0], 11, 'resArr[0]');
assert.sameValue(resArr[1], 12, 'resArr[1]');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js
index 815868a48..f89f39c9c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-3.js
@@ -7,14 +7,13 @@ es5id: 15.4.4.19-9-3
description: Array.prototype.map - subclassed array when length is reduced
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 1;
-function foo() {}
-var f = new foo();
-f.length = 1;
-
-function cb() {}
-var a = f.map(cb);
+ function cb(){}
+ var a = f.map(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js
index 3c01de3d0..f27f93bf0 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-4.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.19-9-4
description: Array.prototype.map doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr["i"] = 10;
+ srcArr[true] = 11;
-function callbackfn(val, idx, obj)
-{
- callCnt++;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr["i"] = 10;
-srcArr[true] = 11;
-
-var resArr = srcArr.map(callbackfn);
+ var resArr = srcArr.map(callbackfn);
assert.sameValue(callCnt, 5, 'callCnt');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js
index 6c04bb72e..84ca53f15 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-5.js
@@ -9,16 +9,12 @@ description: >
(empty array)
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- 1: 8,
- length: 0
-};
+ var obj = { 0: 9, 1: 8, length: 0 };
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js
index a44859e17..e2adc884c 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-6.js
@@ -9,15 +9,15 @@ description: >
(subclassed Array, length overridden to null (type conversion))
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
-var Foo = function() {};
-Foo.prototype = [1, 2, 3];
-var obj = new Foo();
-obj.length = null;
+ var Foo = function () { };
+ Foo.prototype = [1, 2, 3];
+ var obj = new Foo();
+ obj.length = null;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js
index 3370cc36c..b6ebf35ee 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-7.js
@@ -9,18 +9,18 @@ description: >
(subclassed Array, length overridden to false (type conversion))
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var Foo = function() {};
-Foo.prototype = [1, 2, 3];
-var obj = new Foo();
-obj.length = false;
+ var Foo = function () { };
+ Foo.prototype = [1, 2, 3];
+ var obj = new Foo();
+ obj.length = false;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js
index 9e08d61d3..fe1e1f5e4 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-8.js
@@ -9,18 +9,18 @@ description: >
(subclassed Array, length overridden to 0 (type conversion))
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var Foo = function() {};
-Foo.prototype = [1, 2, 3];
-var obj = new Foo();
-obj.length = 0;
+ var Foo = function () { };
+ Foo.prototype = [1, 2, 3];
+ var obj = new Foo();
+ obj.length = 0;
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js b/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js
index 73425afa1..31d18a807 100644
--- a/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js
+++ b/test/built-ins/Array/prototype/map/15.4.4.19-9-9.js
@@ -9,18 +9,18 @@ description: >
(subclassed Array, length overridden to '0' (type conversion))
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var Foo = function() {};
-Foo.prototype = [1, 2, 3];
-var obj = new Foo();
-obj.length = '0';
+ var Foo = function () { };
+ Foo.prototype = [1, 2, 3];
+ var obj = new Foo();
+ obj.length = '0';
-var testResult = Array.prototype.map.call(obj, callbackfn);
+ var testResult = Array.prototype.map.call(obj, callbackfn);
assert.sameValue(testResult.length, 0, 'testResult.length');
diff --git a/test/built-ins/Array/prototype/map/create-ctor-non-object.js b/test/built-ins/Array/prototype/map/create-ctor-non-object.js
index 505b661ce..b020704a2 100644
--- a/test/built-ins/Array/prototype/map/create-ctor-non-object.js
+++ b/test/built-ins/Array/prototype/map/create-ctor-non-object.js
@@ -20,9 +20,7 @@ info: |
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 0;
-};
+var cb = function() { callCount += 0; };
a.constructor = null;
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Array/prototype/map/create-ctor-poisoned.js b/test/built-ins/Array/prototype/map/create-ctor-poisoned.js
index 39318bb94..f99c51bdd 100644
--- a/test/built-ins/Array/prototype/map/create-ctor-poisoned.js
+++ b/test/built-ins/Array/prototype/map/create-ctor-poisoned.js
@@ -17,9 +17,7 @@ info: |
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
Object.defineProperty(a, 'constructor', {
get: function() {
diff --git a/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js b/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js
index 125e50a38..484b77e6f 100644
--- a/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js
+++ b/test/built-ins/Array/prototype/map/create-non-array-invalid-len.js
@@ -22,9 +22,7 @@ info: |
---*/
var callCount = 0;
-var obj = {
- length: Math.pow(2, 32)
-};
+var obj = { length: Math.pow(2, 32) };
var cb = function() {
callCount += 1;
};
diff --git a/test/built-ins/Array/prototype/map/create-non-array.js b/test/built-ins/Array/prototype/map/create-non-array.js
index 077d421df..05f315eba 100644
--- a/test/built-ins/Array/prototype/map/create-non-array.js
+++ b/test/built-ins/Array/prototype/map/create-non-array.js
@@ -16,9 +16,7 @@ info: |
4. If isArray is false, return ? ArrayCreate(length).
---*/
-var obj = {
- length: 0
-};
+var obj = { length: 0 };
var callCount = 0;
var result;
Object.defineProperty(obj, 'constructor', {
diff --git a/test/built-ins/Array/prototype/map/create-revoked-proxy.js b/test/built-ins/Array/prototype/map/create-revoked-proxy.js
index 77967d256..a725bc877 100644
--- a/test/built-ins/Array/prototype/map/create-revoked-proxy.js
+++ b/test/built-ins/Array/prototype/map/create-revoked-proxy.js
@@ -26,9 +26,7 @@ features: [Proxy]
var o = Proxy.revocable([], {});
var ctorCount = 0;
var cbCount = 0;
-var cb = function() {
- cbCount += 1;
-};
+var cb = function() { cbCount += 1; };
Object.defineProperty(o.proxy, 'constructor', {
get: function() {
diff --git a/test/built-ins/Array/prototype/map/create-species-abrupt.js b/test/built-ins/Array/prototype/map/create-species-abrupt.js
index 5c6656f28..dec04db2e 100644
--- a/test/built-ins/Array/prototype/map/create-species-abrupt.js
+++ b/test/built-ins/Array/prototype/map/create-species-abrupt.js
@@ -26,9 +26,7 @@ var Ctor = function() {
throw new Test262Error();
};
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
var a = [];
a.constructor = {};
a.constructor[Symbol.species] = Ctor;
diff --git a/test/built-ins/Array/prototype/map/create-species-non-ctor.js b/test/built-ins/Array/prototype/map/create-species-non-ctor.js
index 661894f6f..50657fef7 100644
--- a/test/built-ins/Array/prototype/map/create-species-non-ctor.js
+++ b/test/built-ins/Array/prototype/map/create-species-non-ctor.js
@@ -25,9 +25,7 @@ features: [Symbol.species]
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
a.constructor = {};
a.constructor[Symbol.species] = parseInt;
diff --git a/test/built-ins/Array/prototype/map/create-species-poisoned.js b/test/built-ins/Array/prototype/map/create-species-poisoned.js
index a232b6aa0..11fb340d3 100644
--- a/test/built-ins/Array/prototype/map/create-species-poisoned.js
+++ b/test/built-ins/Array/prototype/map/create-species-poisoned.js
@@ -21,9 +21,7 @@ features: [Symbol.species]
var a = [];
var callCount = 0;
-var cb = function() {
- callCount += 1;
-};
+var cb = function() { callCount += 1; };
a.constructor = {};
Object.defineProperty(a.constructor, Symbol.species, {
diff --git a/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js b/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js
index bcd781bca..bcd89aadf 100644
--- a/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js
+++ b/test/built-ins/Array/prototype/map/create-species-undef-invalid-len.js
@@ -32,9 +32,7 @@ var array = [];
var maxLength = Math.pow(2, 32);
var cbCount = 0;
var setCount = 0;
-var cb = function() {
- cbCount += 1;
-};
+var cb = function() { cbCount += 1; };
var proxy = new Proxy(array, {
get: function(_, name) {
if (name === 'length') {
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js
index f0c867df5..7b729afba 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.1_T1.js
@@ -23,7 +23,7 @@ if (x.length !== 0) {
}
//CHECK#3
-var x = Array(1, 2, 3);
+var x = Array(1,2,3);
x.length = 0;
var pop = x.pop();
if (pop !== undefined) {
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js
index 0e0cf824a..b12c14952 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A1.2_T1.js
@@ -11,7 +11,7 @@ description: Checking this use new Array() and []
---*/
//CHECK#1
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
var pop = x.pop();
if (pop !== 3) {
$ERROR('#1: x = new Array(0,1,2,3); x.pop() === 3. Actual: ' + (pop));
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js
index 0ab566a45..32ce3b74c 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T1.js
@@ -18,15 +18,15 @@ obj.pop = Array.prototype.pop;
if (obj.length !== undefined) {
$ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length));
} else {
- //CHECK#1
- var pop = obj.pop();
- if (pop !== undefined) {
- $ERROR('#1: var obj = {}; obj.pop = Array.prototype.pop; obj.pop() === undefined. Actual: ' + (pop));
- }
- //CHECK#2
- if (obj.length !== 0) {
- $ERROR('#2: var obj = {}; obj.pop = Array.prototype.pop; obj.pop(); obj.length === 0. Actual: ' + (obj.length));
- }
+ //CHECK#1
+ var pop = obj.pop();
+if (pop !== undefined) {
+ $ERROR('#1: var obj = {}; obj.pop = Array.prototype.pop; obj.pop() === undefined. Actual: ' + (pop));
+ }
+ //CHECK#2
+ if (obj.length !== 0) {
+ $ERROR('#2: var obj = {}; obj.pop = Array.prototype.pop; obj.pop(); obj.length === 0. Actual: ' + (obj.length));
+ }
}
//CHECK#3
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js
index 3573d2a23..ace9cd555 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T2.js
@@ -62,7 +62,7 @@ if (pop !== undefined) {
if (obj.length !== 0) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.pop = Array.prototype.pop; obj.pop(); obj.length === 0. Actual: ' + (obj.length));
} else {
- if (1 / obj.length !== Number.POSITIVE_INFINITY) {
+ if (1/obj.length !== Number.POSITIVE_INFINITY) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.pop = Array.prototype.pop; obj.pop(); obj.length === +0. Actual: ' + (obj.length));
}
}
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js
index d4dcd8184..43d1f76e1 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A2_T4.js
@@ -17,11 +17,7 @@ obj.pop = Array.prototype.pop;
//CHECK#1
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- }
-};
+obj.length = {valueOf: function() {return 1}};
var pop = obj.pop();
if (pop !== -1) {
$ERROR('#1: obj[0] = -1; obj.length = {valueOf: function() {return 1}} obj.pop() === -1. Actual: ' + (pop));
@@ -29,14 +25,7 @@ if (pop !== -1) {
//CHECK#2
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return 0
- }
-};
+obj.length = {valueOf: function() {return 1}, toString: function() {return 0}};
var pop = obj.pop();
if (pop !== -1) {
$ERROR('#0: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return 0}} obj.pop() === -1. Actual: ' + (pop));
@@ -44,14 +33,7 @@ if (pop !== -1) {
//CHECK#3
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return {}
- }
-};
+obj.length = {valueOf: function() {return 1}, toString: function() {return {}}};
var pop = obj.pop();
if (pop !== -1) {
$ERROR('#3: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return {}}} obj.pop() === -1. Actual: ' + (pop));
@@ -60,16 +42,9 @@ if (pop !== -1) {
//CHECK#4
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- throw "error"
- }
- };
+ obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}};
var pop = obj.pop();
- if (pop !== -1) {
+if (pop !== -1) {
$ERROR('#4.1: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; obj.pop() === ",". Actual: ' + (pop));
}
}
@@ -83,11 +58,7 @@ catch (e) {
//CHECK#5
obj[0] = -1;
-obj.length = {
- toString: function() {
- return 0
- }
-};
+obj.length = {toString: function() {return 0}};
var pop = obj.pop();
if (pop !== undefined) {
$ERROR('#5: obj[0] = -1; obj.length = {toString: function() {return 0}} obj.pop() === undefined. Actual: ' + (pop));
@@ -95,14 +66,7 @@ if (pop !== undefined) {
//CHECK#6
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return 0
- }
-}
+obj.length = {valueOf: function() {return {}}, toString: function() {return 0}}
var pop = obj.pop();
if (pop !== undefined) {
$ERROR('#6: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} obj.pop() === undefined. Actual: ' + (pop));
@@ -111,14 +75,7 @@ if (pop !== undefined) {
//CHECK#7
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return 0
- }
- };
+ obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}};
var pop = obj.pop();
$ERROR('#7.1: obj[0] = -1; obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; obj.pop() throw "error". Actual: ' + (pop));
}
@@ -131,14 +88,7 @@ catch (e) {
//CHECK#8
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ obj.length = {valueOf: function() {return {}}, toString: function() {return {}}};
var pop = obj.pop();
$ERROR('#8.1: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.pop() throw TypeError. Actual: ' + (pop));
}
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js
index 424b9943c..2be2539f5 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T1.js
@@ -27,10 +27,10 @@ if (obj.length !== 4294967295) {
//CHECK#3
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[4294967295] !== undefined) {
- $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
+ $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; obj.pop(); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
}
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js
index b309bc48a..fdbbc28cf 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T2.js
@@ -27,10 +27,10 @@ if (obj.length !== 4294967296) {
//CHECK#3
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[4294967296] !== undefined) {
- $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[4294967296] === undefined. Actual: ' + (obj[4294967296]));
+ $ERROR('#4: var obj = {}; obj.pop = Array.prototype.pop; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; obj.pop(); obj[4294967296] === undefined. Actual: ' + (obj[4294967296]));
}
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js
index 56919c555..4b9c4020b 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A3_T3.js
@@ -26,5 +26,5 @@ if (obj.length !== 0) {
//CHECK#3
if (obj[4294967294] !== "x") {
- $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[4294967294] = "x"; obj.length = -1; obj.pop(); obj[4294967294] === "x". Actual: ' + (obj[4294967294]));
+ $ERROR('#3: var obj = {}; obj.pop = Array.prototype.pop; obj[4294967294] = "x"; obj.length = -1; obj.pop(); obj[4294967294] === "x". Actual: ' + (obj[4294967294]));
}
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js
index b5ebe7a12..45d5af886 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T1.js
@@ -28,9 +28,7 @@ if (x[1] !== 1) {
Object.prototype[1] = 1;
Object.prototype.length = 2;
Object.prototype.pop = Array.prototype.pop;
-x = {
- 0: 0
-};
+x = {0:0};
//CHECK#3
var pop = x.pop();
diff --git a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js
index 3592d7253..7ef34c737 100644
--- a/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js
+++ b/test/built-ins/Array/prototype/pop/S15.4.4.6_A4_T2.js
@@ -11,7 +11,7 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [0, 1];
+var x = [0,1];
x.length = 2;
//CHECK#1
@@ -28,10 +28,7 @@ if (x[1] !== -1) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.pop = Array.prototype.pop;
-x = {
- 0: 0,
- 1: 1
-};
+x = {0:0,1:1};
//CHECK#3
var pop = x.pop();
diff --git a/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js
index 0c5899a55..92adbd6ab 100644
--- a/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js
+++ b/test/built-ins/Array/prototype/pop/clamps-to-integer-limit.js
@@ -18,18 +18,18 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
Array.prototype.pop.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 2, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
Array.prototype.pop.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is 2**53");
+assert.sameValue(arrayLike.length, 2**53 - 2, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
Array.prototype.pop.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is 2**53 + 2");
+assert.sameValue(arrayLike.length, 2**53 - 2, "Length is 2**53 + 2");
arrayLike.length = Infinity;
Array.prototype.pop.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 2, "Length is Infinity");
+assert.sameValue(arrayLike.length, 2**53 - 2, "Length is Infinity");
diff --git a/test/built-ins/Array/prototype/pop/length-near-integer-limit.js b/test/built-ins/Array/prototype/pop/length-near-integer-limit.js
index a480b9c6c..7763b8f3c 100644
--- a/test/built-ins/Array/prototype/pop/length-near-integer-limit.js
+++ b/test/built-ins/Array/prototype/pop/length-near-integer-limit.js
@@ -22,22 +22,22 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
"9007199254740990": "9007199254740990",
"9007199254740991": "9007199254740991",
- length: 2 ** 53 - 1
+ length: 2**53 - 1
};
var value = Array.prototype.pop.call(arrayLike);
assert.sameValue(value, "9007199254740990",
- "arrayLike['9007199254740990'] is returned from pop()");
+ "arrayLike['9007199254740990'] is returned from pop()");
-assert.sameValue(arrayLike.length, 2 ** 53 - 2,
- "New arrayLike.length is 2**53 - 2");
+assert.sameValue(arrayLike.length, 2**53 - 2,
+ "New arrayLike.length is 2**53 - 2");
assert.sameValue(arrayLike["9007199254740989"], "9007199254740989",
- "arrayLike['9007199254740989'] is unchanged");
+ "arrayLike['9007199254740989'] is unchanged");
assert.sameValue("9007199254740990" in arrayLike, false,
- "arrayLike['9007199254740990'] is removed");
+ "arrayLike['9007199254740990'] is removed");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js
index 8d2e84db9..181e68ca0 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T1.js
@@ -19,19 +19,19 @@ obj.push = Array.prototype.push;
if (obj.length !== undefined) {
$ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length));
} else {
- //CHECK#1
- var push = obj.push(-1);
- if (push !== 1) {
- $ERROR('#1: var obj = {}; obj.push = Array.prototype.push; obj.push(-1) === 1. Actual: ' + (push));
- }
- //CHECK#2
- if (obj.length !== 1) {
- $ERROR('#2: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj.length === 1. Actual: ' + (obj.length));
- }
- //CHECK#3
- if (obj["0"] !== -1) {
- $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj["0"] === -1. Actual: ' + (obj["0"]));
- }
+ //CHECK#1
+ var push = obj.push(-1);
+if (push !== 1) {
+ $ERROR('#1: var obj = {}; obj.push = Array.prototype.push; obj.push(-1) === 1. Actual: ' + (push));
+ }
+ //CHECK#2
+ if (obj.length !== 1) {
+ $ERROR('#2: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj.length === 1. Actual: ' + (obj.length));
+ }
+ //CHECK#3
+ if (obj["0"] !== -1) {
+ $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.push(-1); obj["0"] === -1. Actual: ' + (obj["0"]));
+ }
}
//CHECK#4
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js
index 6c5c1c4ad..04ab24c3c 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T2.js
@@ -35,9 +35,7 @@ if (obj["0"] !== -1) {
//CHECK#4
obj.length = Number.POSITIVE_INFINITY;
-assert.throws(TypeError, function() {
- obj.push(-4);
-});
+assert.throws(TypeError, function() { obj.push(-4); });
//CHECK#5
if (obj.length !== Number.POSITIVE_INFINITY) {
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js
index 32aa88216..f92536cc6 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A2_T3.js
@@ -16,39 +16,21 @@ var obj = {};
obj.push = Array.prototype.push;
//CHECK#1
-obj.length = {
- valueOf: function() {
- return 3
- }
-};
+obj.length = {valueOf: function() {return 3}};
var push = obj.push();
if (push !== 3) {
$ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.push() === 3. Actual: ' + (push));
}
//CHECK#2
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return 1
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return 1}};
var push = obj.push();
if (push !== 3) {
$ERROR('#0: obj.length = {valueOf: function() {return 3}, toString: function() {return 1}} obj.push() === 3. Actual: ' + (push));
}
//CHECK#3
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return {}
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return {}}};
var push = obj.push();
if (push !== 3) {
$ERROR('#1: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.push() === 3. Actual: ' + (push));
@@ -57,16 +39,9 @@ if (push !== 3) {
//CHECK#4
try {
- obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- throw "error"
- }
- };
+ obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}};
var push = obj.push();
- if (push !== 3) {
+if (push !== 3) {
$ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.push() === ",". Actual: ' + (push));
}
}
@@ -79,25 +54,14 @@ catch (e) {
}
//CHECK#5
-obj.length = {
- toString: function() {
- return 1
- }
-};
+obj.length = {toString: function() {return 1}};
var push = obj.push();
if (push !== 1) {
$ERROR('#5: obj.length = {toString: function() {return 1}} obj.push() === 1. Actual: ' + (push));
}
//CHECK#6
-obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return 1
- }
-}
+obj.length = {valueOf: function() {return {}}, toString: function() {return 1}}
var push = obj.push();
if (push !== 1) {
$ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} obj.push() === 1. Actual: ' + (push));
@@ -106,14 +70,7 @@ if (push !== 1) {
//CHECK#7
try {
- obj.length = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return 1
- }
- };
+ obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}};
var push = obj.push();
$ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; obj.push() throw "error". Actual: ' + (push));
}
@@ -126,14 +83,7 @@ catch (e) {
//CHECK#8
try {
- obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ obj.length = {valueOf: function() {return {}}, toString: function() {return {}}};
var push = obj.push();
$ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.push() throw TypeError. Actual: ' + (push));
}
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js
index d9b26a6e3..dd596aefd 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A3.js
@@ -21,7 +21,7 @@ if (push !== 4294967295) {
try {
x.push("x");
$ERROR('#2.1: x = []; x.length = 4294967295; x.push("x") throw RangeError. Actual: ' + (push));
-} catch (e) {
+} catch(e) {
if ((e instanceof RangeError) !== true) {
$ERROR('#2.2: x = []; x.length = 4294967295; x.push("x") throw RangeError. Actual: ' + (e));
}
@@ -29,10 +29,10 @@ try {
//CHECK#3
if (x[4294967295] !== "x") {
- $ERROR('#3: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x[4294967295] === "x". Actual: ' + (x[4294967295]));
+ $ERROR('#3: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x[4294967295] === "x". Actual: ' + (x[4294967295]));
}
//CHECK#4
if (x.length !== 4294967295) {
- $ERROR('#4: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x.length === 4294967295. Actual: ' + (x.length));
+ $ERROR('#4: x = []; x.length = 4294967295; try {x.push("x")}catch(e){}; x.length === 4294967295. Actual: ' + (x.length));
}
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js
index 90ed3ae4c..bc762776c 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T1.js
@@ -25,32 +25,32 @@ if (obj.length !== 4294967299) {
//CHECK#3
if (obj[0] !== undefined) {
- $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[0] === undefined. Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[0] === undefined. Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[1] !== undefined) {
- $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[1] === undefined. Actual: ' + (obj[1]));
+ $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[1] === undefined. Actual: ' + (obj[1]));
}
//CHECK#5
if (obj[2] !== undefined) {
- $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#6
if (obj[4294967296] !== "x") {
- $ERROR('#6: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967296] === "x". Actual: ' + (obj[4294967296]));
+ $ERROR('#6: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967296] === "x". Actual: ' + (obj[4294967296]));
}
//CHECK#7
if (obj[4294967297] !== "y") {
- $ERROR('#7: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967297] === "y". Actual: ' + (obj[4294967297]));
+ $ERROR('#7: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967297] === "y". Actual: ' + (obj[4294967297]));
}
//CHECK#8
if (obj[4294967298] !== "z") {
- $ERROR('#8: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967298] === "z". Actual: ' + (obj[4294967298]));
+ $ERROR('#8: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967296; obj.push("x", "y", "z"); obj[4294967298] === "z". Actual: ' + (obj[4294967298]));
}
var obj = {};
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js
index 0ed4b027c..22a2c5b43 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T2.js
@@ -25,15 +25,15 @@ if (obj.length !== 4294967298) {
//CHECK#3
if (obj[4294967295] !== "x") {
- $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967295] === "x". Actual: ' + (obj[4294967295]));
+ $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967295] === "x". Actual: ' + (obj[4294967295]));
}
//CHECK#4
if (obj[4294967296] !== "y") {
- $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967296] === "y". Actual: ' + (obj[4294967296]));
+ $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967296] === "y". Actual: ' + (obj[4294967296]));
}
//CHECK#5
if (obj[4294967297] !== "z") {
- $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967297] === "z". Actual: ' + (obj[4294967297]));
+ $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = 4294967295; obj.push("x", "y", "z"); obj[4294967297] === "z". Actual: ' + (obj[4294967297]));
}
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js
index afaf0b143..464dcacca 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A4_T3.js
@@ -25,30 +25,30 @@ if (obj.length !== 3) {
//CHECK#3
if (obj[4294967295] !== undefined) {
- $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
+ $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
}
//CHECK#4
if (obj[4294967296] !== undefined) {
- $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967296] === undefined. Actual: ' + (obj[4294967296]));
+ $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967296] === undefined. Actual: ' + (obj[4294967296]));
}
//CHECK#5
if (obj[4294967297] !== undefined) {
- $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967297] === undefined. Actual: ' + (obj[4294967297]));
+ $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[4294967297] === undefined. Actual: ' + (obj[4294967297]));
}
//CHECK#6
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#7
if (obj[1] !== "y") {
- $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1]));
+ $ERROR('#4: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1]));
}
//CHECK#8
if (obj[2] !== "z") {
- $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2]));
+ $ERROR('#5: var obj = {}; obj.push = Array.prototype.push; obj.length = -1; obj.push("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2]));
}
diff --git a/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js b/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js
index 70f1b41ac..6cbf65e07 100644
--- a/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js
+++ b/test/built-ins/Array/prototype/push/S15.4.4.7_A5_T1.js
@@ -13,9 +13,7 @@ description: >
Object.prototype[1] = -1;
Object.prototype.length = 1;
Object.prototype.push = Array.prototype.push;
-var x = {
- 0: 0
-};
+var x = {0:0};
//CHECK#1
var push = x.push(1);
diff --git a/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js
index 9cfc323fc..d4100dd0c 100644
--- a/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js
+++ b/test/built-ins/Array/prototype/push/clamps-to-integer-limit.js
@@ -18,18 +18,18 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
Array.prototype.push.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
Array.prototype.push.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
Array.prototype.push.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 + 2");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 + 2");
arrayLike.length = Infinity;
Array.prototype.push.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is Infinity");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is Infinity");
diff --git a/test/built-ins/Array/prototype/push/length-near-integer-limit.js b/test/built-ins/Array/prototype/push/length-near-integer-limit.js
index 4c94e2987..b727b5115 100644
--- a/test/built-ins/Array/prototype/push/length-near-integer-limit.js
+++ b/test/built-ins/Array/prototype/push/length-near-integer-limit.js
@@ -21,19 +21,19 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
/* "9007199254740990": empty */
"9007199254740991": "9007199254740991",
- length: 2 ** 53 - 2
+ length: 2**53 - 2
};
Array.prototype.push.call(arrayLike, "new-value");
-assert.sameValue(arrayLike.length, 2 ** 53 - 1,
- "New arrayLike.length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 1,
+ "New arrayLike.length is 2**53 - 1");
assert.sameValue(arrayLike["9007199254740989"], "9007199254740989",
- "arrayLike['9007199254740989'] is unchanged");
+ "arrayLike['9007199254740989'] is unchanged");
assert.sameValue(arrayLike["9007199254740990"], "new-value",
- "arrayLike['9007199254740990'] has new value");
+ "arrayLike['9007199254740990'] has new value");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js b/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js
index ae71cd417..1542fd025 100644
--- a/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js
+++ b/test/built-ins/Array/prototype/push/throws-if-integer-limit-exceeded.js
@@ -17,17 +17,17 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
assert.throws(TypeError, function() {
Array.prototype.push.call(arrayLike, null);
}, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
assert.throws(TypeError, function() {
Array.prototype.push.call(arrayLike, null);
}, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
assert.throws(TypeError, function() {
Array.prototype.push.call(arrayLike, null);
}, "Length is 2**53 + 2");
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js
index 264cd7934..fdb550a91 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.reduce applied to undefined
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(undefined);
+ Array.prototype.reduce.call(undefined);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js
index 04bb5ee2a..d24e9841c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-10.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-10
description: Array.prototype.reduce applied to the Math object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return ('[object Math]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return ('[object Math]' === Object.prototype.toString.call(obj));
+ }
-Math.length = 1;
-Math[0] = 1;
+ Math.length = 1;
+ Math[0] = 1;
assert(Array.prototype.reduce.call(Math, callbackfn, 1), 'Array.prototype.reduce.call(Math, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js
index 67534e339..4f4a9d6fd 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-11.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-11
description: Array.prototype.reduce applied to Date object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Date;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Date;
+ }
-var obj = new Date();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js
index ade27ade6..7e9604d55 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-12.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-12
description: Array.prototype.reduce applied to RegExp object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof RegExp;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof RegExp;
+ }
-var obj = new RegExp();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new RegExp();
+ obj.length = 1;
+ obj[0] = 1;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js
index 3bdd3e172..886330839 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-13.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-13
description: Array.prototype.reduce applied to the JSON object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return ('[object JSON]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return ('[object JSON]' === Object.prototype.toString.call(obj));
+ }
-JSON.length = 1;
-JSON[0] = 1;
+ JSON.length = 1;
+ JSON[0] = 1;
assert(Array.prototype.reduce.call(JSON, callbackfn, 1), 'Array.prototype.reduce.call(JSON, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js
index 424e1e69f..ae958b3d2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-14.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-14
description: Array.prototype.reduce applied to Error object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Error;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Error;
+ }
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js
index a5387f278..efa389f9d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-15.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.21-1-15
description: Array.prototype.reduce applied to the Arguments object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return ('[object Arguments]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return ('[object Arguments]' === Object.prototype.toString.call(obj));
+ }
-var obj = (function() {
- return arguments;
-}("a", "b"));
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js
index b070b9ea1..709021d9a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.reduce applied to null
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(null);
+ Array.prototype.reduce.call(null);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js
index 833762b49..ae7e78214 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-3.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-3
description: Array.prototype.reduce applied to boolean primitive
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Boolean;
+ }
-Boolean.prototype[0] = true;
-Boolean.prototype.length = 1;
+ Boolean.prototype[0] = true;
+ Boolean.prototype.length = 1;
assert(Array.prototype.reduce.call(false, callbackfn, 1), 'Array.prototype.reduce.call(false, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js
index c08a75077..33519f325 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-4.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.21-1-4
description: Array.prototype.reduce applied to Boolean object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Boolean;
+ }
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js
index 8314bea9b..20ca2f99f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-5.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.21-1-5
description: Array.prototype.reduce applied to number primitive
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Number;
+ }
-Number.prototype[0] = 1;
-Number.prototype.length = 1;
+ Number.prototype[0] = 1;
+ Number.prototype.length = 1;
assert(Array.prototype.reduce.call(2.5, callbackfn, 1), 'Array.prototype.reduce.call(2.5, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js
index 4ab488dc4..55eba5ba3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-6.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.21-1-6
description: Array.prototype.reduce applied to Number object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Number;
+ }
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js
index 6869f90c0..ca9911488 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-7.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.21-1-7
description: Array.prototype.reduce applied to string primitive
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof String;
+ }
assert(Array.prototype.reduce.call("abc", callbackfn, 1), 'Array.prototype.reduce.call("abc", callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js
index 96635cee2..169467bb2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-8.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.21-1-8
description: Array.prototype.reduce applied to String object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof String;
+ }
-var obj = new String("abc");
+ var obj = new String("abc");
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js
index b2bd796bb..dd00fe9bb 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-1-9.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.21-1-9
description: Array.prototype.reduce applied to Function object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return obj instanceof Function;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return obj instanceof Function;
+ }
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.reduce.call(obj, callbackfn, 1), 'Array.prototype.reduce.call(obj, callbackfn, 1) !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js
index 777c4d3f8..ae5680106 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-1.js
@@ -9,12 +9,12 @@ description: >
called on
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return 1;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr.reduce(callbackfn);
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return 1;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr.reduce(callbackfn);
assert.sameValue(srcArr[0], 1, 'srcArr[0]');
assert.sameValue(srcArr[1], 2, 'srcArr[1]');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js
index a01a48c92..57b27d794 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-2.js
@@ -9,10 +9,10 @@ description: >
indices
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return prevVal + curVal;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return prevVal + curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
assert.sameValue(srcArr.reduce(callbackfn), '12345', 'srcArr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js
index 5174a6300..ee1cd1801 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-3.js
@@ -7,11 +7,10 @@ es5id: 15.4.4.21-10-3
description: Array.prototype.reduce - subclassed array of length 1
---*/
-foo.prototype = [1];
+ foo.prototype = [1];
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
-
-function cb() {}
+ function cb(){}
assert.sameValue(f.reduce(cb), 1, 'f.reduce(cb)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js
index e84e53a71..5dcd159f6 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-4.js
@@ -7,13 +7,10 @@ es5id: 15.4.4.21-10-4
description: Array.prototype.reduce - subclassed array with length more than 1
---*/
-foo.prototype = new Array(1, 2, 3, 4);
+ foo.prototype = new Array(1, 2, 3, 4);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
-
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
assert.sameValue(f.reduce(cb), 10, 'f.reduce(cb)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js
index 82c843ecd..f7778c537 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-5.js
@@ -9,10 +9,10 @@ description: >
indices(initialvalue present)
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return prevVal + curVal;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return prevVal + curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
-assert.sameValue(srcArr.reduce(callbackfn, '0'), '012345', 'srcArr.reduce(callbackfn,"0")');
+assert.sameValue(srcArr.reduce(callbackfn,'0'), '012345', 'srcArr.reduce(callbackfn,"0")');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js
index 35e50b126..5babbe757 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-6.js
@@ -9,13 +9,10 @@ description: >
provided
---*/
-foo.prototype = [1, 2, 3, 4];
+ foo.prototype = [1,2,3,4];
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
-
-assert.sameValue(f.reduce(cb, -1), 9, 'f.reduce(cb,-1)');
+assert.sameValue(f.reduce(cb,-1), 9, 'f.reduce(cb,-1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js
index 1725c367e..e0cd77f63 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-7.js
@@ -9,13 +9,10 @@ description: >
initialvalue provided
---*/
-foo.prototype = [1];
+ foo.prototype = [1];
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
-
-assert.sameValue(f.reduce(cb, -1), 0, 'f.reduce(cb,-1)');
+assert.sameValue(f.reduce(cb,-1), 0, 'f.reduce(cb,-1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js
index 3f1ffdcb4..abb4066ee 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-10-8.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.21-10-8
description: Array.prototype.reduce doesn't visit expandos
---*/
-var callCnt = 0;
-
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
- return curVal;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
-srcArr["i"] = 10;
-srcArr[true] = 11;
-srcArr.reduce(callbackfn);
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
+ srcArr["i"] = 10;
+ srcArr[true] = 11;
+ srcArr.reduce(callbackfn);
assert.sameValue(callCnt, 4, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js
index 4e5e8bb97..700961b96 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js
@@ -9,15 +9,15 @@ description: >
Array-like object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js
index 18e09d6d3..41de90c5c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-10.js
@@ -9,25 +9,25 @@ description: >
an inherited accessor property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js
index 9dd5748b6..25cf0e462 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-11.js
@@ -9,20 +9,19 @@ description: >
an own accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
-
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js
index da2f2a6ac..375fa552d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-12.js
@@ -10,27 +10,23 @@ description: >
Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-var obj = {
- 0: 12,
- 1: 11
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 0: 12, 1: 11 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js
index 7f1250292..2be607315 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-13.js
@@ -9,24 +9,24 @@ description: >
is inherited accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), 1, 'Array.prototype.reduce.call(child, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js
index f21ee41e7..3ed0c858f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-14.js
@@ -9,16 +9,13 @@ description: >
'length' property doesn't exist
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js
index c53ac5820..2d0636319 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-17.js
@@ -9,13 +9,13 @@ description: >
implements its own property get method
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var func = function(a, b) {
- arguments[2] = 9;
- return Array.prototype.reduce.call(arguments, callbackfn, 1);
-};
+ var func = function (a, b) {
+ arguments[2] = 9;
+ return Array.prototype.reduce.call(arguments, callbackfn, 1);
+ };
assert.sameValue(func(12, 11), true, 'func(12, 11)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js
index 43c4f960d..6e50eadc5 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-18.js
@@ -9,10 +9,10 @@ description: >
its own property get method
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 3);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 3);
+ }
-var str = new String("012");
+ var str = new String("012");
assert.sameValue(Array.prototype.reduce.call(str, callbackfn, 1), true, 'Array.prototype.reduce.call(str, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js
index 02eaafd2b..5b9a2c1c8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-19.js
@@ -9,15 +9,15 @@ description: >
implements its own property get method
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 12;
-fun[1] = 11;
-fun[2] = 9;
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 12;
+ fun[1] = 11;
+ fun[2] = 9;
assert.sameValue(Array.prototype.reduce.call(fun, callbackfn, 1), true, 'Array.prototype.reduce.call(fun, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js
index 6b63af80a..0770dea2b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-2.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.21-2-2
description: Array.prototype.reduce - 'length' is own data property on an Array
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
assert.sameValue([12, 11].reduce(callbackfn, 1), true, '[12, 11].reduce(callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js
index ae2642759..7abfa8846 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-3.js
@@ -9,21 +9,19 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js
index a2666931e..f1acd1884 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-4.js
@@ -9,13 +9,13 @@ description: >
overrides an inherited data property on an Array
---*/
-var storeProtoLength;
+ var storeProtoLength;
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-storeProtoLength = Array.prototype.length;
-Array.prototype.length = 0;
+ storeProtoLength = Array.prototype.length;
+ Array.prototype.length = 0;
assert.sameValue([12, 11].reduce(callbackfn, 1), true, '[12, 11].reduce(callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js
index 5e826cf74..2b000ba6a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-5.js
@@ -9,29 +9,29 @@ description: >
an own data property that overrides an inherited accessor property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js
index 9088ded91..9385b2243 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js
@@ -9,20 +9,18 @@ description: >
an inherited data property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js
index 2aea682c7..1adfa3c8b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-7.js
@@ -9,21 +9,21 @@ description: >
an own accessor property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-obj[0] = 12;
-obj[1] = 11;
-obj[2] = 9;
+ obj[0] = 12;
+ obj[1] = 11;
+ obj[2] = 9;
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js
index 6d9537535..2e76fa739 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-8.js
@@ -9,28 +9,26 @@ description: >
an own accessor property that overrides an inherited data property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js
index 34b6ca18d..08ef5140b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-9.js
@@ -10,33 +10,33 @@ description: >
property
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (obj.length === 2);
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (obj.length === 2);
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js
index 1cd10992a..a7b058226 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-1.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.21-3-1
description: Array.prototype.reduce - value of 'length' is undefined
---*/
-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: 0,
- 1: 1,
- length: undefined
-};
+ var obj = { 0: 0, 1: 1, length: undefined };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
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 982fd8965..a2c41a303 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,17 +9,14 @@ 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');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js
index 01185212a..a5bbcd485 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js
@@ -9,14 +9,10 @@ description: >
positive number
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2"
-};
+ var obj = { 1: 11, 2: 9, length: "2" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js
index c1610fdf1..ca3bbd981 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-12.js
@@ -9,14 +9,10 @@ description: >
negative number
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "-4294967294"
-};
+ var obj = { 1: 11, 2: 9, length: "-4294967294" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js
index 77c594df4..4ab83fe8e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-13.js
@@ -9,14 +9,10 @@ description: >
number
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2.5"
-};
+ var obj = { 1: 11, 2: 9, length: "2.5" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js
index 26bf70c04..8feeae4a8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-14.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.21-3-14
description: Array.prototype.reduce - 'length' is a string containing -Infinity
---*/
-var accessed2 = false;
+ var accessed2 = false;
-function callbackfn2(prevVal, curVal, idx, obj) {
- accessed2 = true;
- return 2;
-}
+ function callbackfn2(prevVal, curVal, idx, obj) {
+ accessed2 = true;
+ return 2;
+ }
-var obj2 = {
- 0: 9,
- length: "-Infinity"
-};
+ var obj2 = { 0: 9, length: "-Infinity" };
assert.sameValue(Array.prototype.reduce.call(obj2, callbackfn2, 1), 1, 'Array.prototype.reduce.call(obj2, callbackfn2, 1)');
assert.sameValue(accessed2, false, 'accessed2');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js
index a467d5ba4..e17fd3d9e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-15.js
@@ -9,14 +9,10 @@ description: >
exponential number
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "2E0"
-};
+ var obj = { 1: 11, 2: 9, length: "2E0" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js
index c1e8c7a11..ac8545db7 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-16.js
@@ -9,14 +9,10 @@ description: >
number
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0x0002"
-};
+ var obj = { 1: 11, 2: 9, length: "0x0002" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js
index 683e3d900..867184529 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-17.js
@@ -9,14 +9,10 @@ description: >
with leading zeros
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: "0002.00"
-};
+ var obj = { 1: 11, 2: 9, length: "0002.00" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js
index 4b797136b..d5705664f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-18.js
@@ -9,17 +9,13 @@ description: >
convert to a number
---*/
-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: "asdf!_"
-};
+ var obj = { 0: 9, length: "asdf!_" };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js
index 7d168f5e0..3cc7aac5e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-19.js
@@ -9,18 +9,18 @@ description: >
an own toString method
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- toString: function() {
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ toString: function () {
+ return '2';
+ }
+ }
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js
index 32492611f..f4fc199e4 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-2.js
@@ -9,14 +9,10 @@ description: >
true)
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 0);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 0);
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: true
-};
+ var obj = { 0: 11, 1: 9, length: true };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js
index 32f5200bc..b15ff9a1d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-20.js
@@ -9,18 +9,18 @@ description: >
an own valueOf method
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- return 2;
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ return 2;
+ }
+ }
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js
index 9470d7679..1188ac3ef 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-21.js
@@ -10,27 +10,27 @@ description: >
returns a string
---*/
-var valueOfOccured = false;
-var toStringOccured = false;
+ var valueOfOccured = false;
+ var toStringOccured = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- valueOfOccured = true;
- return {};
- },
- toString: function() {
- toStringOccured = true;
- return '2';
- }
- }
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ valueOfOccured = true;
+ return {};
+ },
+ toString: function () {
+ toStringOccured = true;
+ return '2';
+ }
+ }
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert(valueOfOccured, 'valueOfOccured !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js
index b7d4a852c..63fca1bd3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-22.js
@@ -10,32 +10,32 @@ description: >
primitive values
---*/
-var accessed = false;
-var valueOfAccessed = false;
-var toStringAccessed = false;
+ var accessed = false;
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return true;
+ }
-var obj = {
- 1: 11,
- 2: 12,
+ var obj = {
+ 1: 11,
+ 2: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, callbackfn, 1);
+ Array.prototype.reduce.call(obj, callbackfn, 1);
});
assert.sameValue(accessed, false, 'accessed');
assert(toStringAccessed, 'toStringAccessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js
index c281ba361..d48e58c90 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-23.js
@@ -9,35 +9,35 @@ description: >
an object with an own toString and inherited valueOf methods
---*/
-var valueOfAccessed = false;
-var toStringAccessed = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
-
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
-
-var obj = {
- 1: 11,
- 2: 9,
- length: child
-};
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
+
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
+
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: child
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js
index c3e969f57..48c4ede3c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-24.js
@@ -9,14 +9,14 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2.685
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: 2.685
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js
index 5a8f54239..352c988a0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-25.js
@@ -9,14 +9,14 @@ description: >
non-integer
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294.5
-};
+ var obj = {
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+ };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js
index 0fe83bd71..89231153d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-3.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.21-3-3
description: Array.prototype.reduce - value of 'length' is a number (value is 0)
---*/
-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: 1,
- 1: 1,
- length: 0
-};
+ var obj = { 0: 1, 1: 1, length: 0 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js
index 864a0c1e5..1c6e0d988 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-4.js
@@ -9,17 +9,14 @@ description: >
+0)
---*/
-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: 11,
- length: +0
-};
+ var obj = { 0: 11, length: +0 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js
index 0a22d02a3..da3f4cf5f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-5.js
@@ -9,17 +9,14 @@ description: >
-0)
---*/
-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: 11,
- length: -0
-};
+ var obj = { 0: 11, length: -0 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js
index fbee22d42..1617a7493 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-6.js
@@ -9,14 +9,10 @@ description: >
positive)
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: 2
-};
+ var obj = { 1: 11, 2: 9, length: 2 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js
index b171abfd2..b8eb59871 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-7.js
@@ -9,14 +9,10 @@ description: >
negative)
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal === 11 && idx === 1);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal === 11 && idx === 1);
+ }
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294
-};
+ var obj = { 1: 11, 2: 9, length: -4294967294 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js
index 33c8a72d3..dc8cbfd8d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-9.js
@@ -9,16 +9,13 @@ description: >
-Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: -Infinity
-};
+ var obj = { 0: 9, length: -Infinity };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), 1, 'Array.prototype.reduce.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js
index ffc66baac..565eec8bf 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-1
description: Array.prototype.reduce throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce();
+ arr.reduce();
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js
index 5592d22dc..b37a75ea8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-10.js
@@ -9,18 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, undefined);
+ Array.prototype.reduce.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js
index a9993c239..c3a439898 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-11.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, undefined);
+ Array.prototype.reduce.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js
index 391122864..087ba33ec 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-12.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.21-4-12
description: Array.prototype.reduce - 'callbackfn' is a function
---*/
-var accessed = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return curVal > 10;
-}
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return curVal > 10;
+ }
assert.sameValue([11, 9].reduce(callbackfn, 1), false, '[11, 9].reduce(callbackfn, 1)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js
index 7072a1d2c..509aeb618 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-15.js
@@ -9,29 +9,27 @@ description: >
passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj);
+ Array.prototype.reduce.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js
index a510f11e1..bc24e2d62 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.reduce(foo);
+ arr.reduce(foo);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js
index c980003a3..8f1bbae3a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-3
description: Array.prototype.reduce throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce(null);
+ arr.reduce(null);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js
index f86249342..f562ac79f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-4
description: Array.prototype.reduce throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce(true);
+ arr.reduce(true);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js
index 19ea080d0..a17c110ef 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-5
description: Array.prototype.reduce throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce(5);
+ arr.reduce(5);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js
index 10d80e665..7a815eddc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.21-4-6
description: Array.prototype.reduce throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce("abc");
+ arr.reduce("abc");
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js
index 5f5bb6516..57281c17c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-7.js
@@ -9,7 +9,7 @@ description: >
without [[Call]] internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce(new Object());
+ arr.reduce(new Object());
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js
index da9ba950c..07e01936b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-8.js
@@ -9,21 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, null);
+ Array.prototype.reduce.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js
index b0e48b628..31738344a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-4-9.js
@@ -9,25 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, null);
+ Array.prototype.reduce.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js
index ca6c54034..ebf1d0364 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-1.js
@@ -9,7 +9,7 @@ description: >
array), no initVal
---*/
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- [].reduce(cb);
+ [].reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js
index 2d392481c..457d6114d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-10.js
@@ -9,25 +9,22 @@ description: >
side-effects that might be produced by step 2
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal > 10);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal > 10);
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 0;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js
index 8b63d3e3e..604a91c14 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-11.js
@@ -9,29 +9,26 @@ description: >
any side-effects that might be produced by step 3
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal > 10);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal > 10);
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "0";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "0";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js
index 8cdeb3b4c..57209d338 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-12.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 2
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal > 10);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal > 10);
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js
index 3285912c3..297d0d481 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-13.js
@@ -9,26 +9,23 @@ description: >
was thrown by step 3
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return (curVal > 10);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return (curVal > 10);
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js
index ac6150304..c3ff294e2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-2.js
@@ -10,13 +10,12 @@ description: >
no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js
index 1fb61ac82..b0b9d0060 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-3.js
@@ -10,13 +10,12 @@ description: >
no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js
index a68dd4934..c452e0f55 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-4.js
@@ -10,13 +10,12 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js
index 0717a9edd..287cae360 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-5.js
@@ -10,13 +10,12 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js
index 4a935d9a7..aba39d0b1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-6.js
@@ -10,19 +10,14 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js
index faede2222..13e218f2c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-7.js
@@ -10,25 +10,20 @@ description: >
(toString)), no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js
index ddf3cbf52..9d932b371 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-8.js
@@ -9,28 +9,27 @@ description: >
(subclassed Array, length overridden with []), no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [];
-f.length = [];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduce(cb);
+ f.reduce(cb);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js
index 8df0ed8c9..edbcb465f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-5-9.js
@@ -9,11 +9,10 @@ description: >
and 'initialValue' is present
---*/
-var accessed = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
assert.sameValue([].reduce(callbackfn, 3), 3, '[].reduce(callbackfn, 3)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js
index 785c4e32f..db603f952 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-1.js
@@ -9,5 +9,5 @@ description: >
initialValue is present (empty array)
---*/
-function cb() {}
-assert.sameValue([].reduce(cb, 1), 1, '[].reduce(cb,1)');
+ function cb(){}
+assert.sameValue([].reduce(cb,1), 1, '[].reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js
index a03752192..f86e9806f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-10.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.21-7-10
description: Array.prototype.reduce - 'initialValue' is present
---*/
-var str = "initialValue is present";
+ var str = "initialValue is present";
-assert.sameValue([].reduce(function() {}, str), str, '[].reduce(function () { }, str)');
+assert.sameValue([].reduce(function () { }, str), str, '[].reduce(function () { }, str)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js
index 7c2dd91ff..619bb2d27 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-11.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.21-7-11
description: Array.prototype.reduce - 'initialValue' is not present
---*/
-var str = "initialValue is not present";
+ var str = "initialValue is not present";
-assert.sameValue([str].reduce(function() {}), str, '[str].reduce(function () { })');
+assert.sameValue([str].reduce(function () { }), str, '[str].reduce(function () { })');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js
index 7c227878c..27ddd16b0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js
@@ -10,11 +10,10 @@ description: >
null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js
index 525f769e3..eed2c040f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-3.js
@@ -10,11 +10,10 @@ description: >
false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js
index fed398c8e..4fb6146f1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-4.js
@@ -10,11 +10,10 @@ description: >
(type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js
index 8634d03a6..4a6d8d59e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-5.js
@@ -10,11 +10,10 @@ description: >
'0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js
index 33c22e6e7..2c2174482 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-6.js
@@ -10,17 +10,12 @@ description: >
obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js
index db7132e8a..3d7783369 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-7.js
@@ -10,23 +10,18 @@ description: >
obj w/o valueOf (toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js
index 8ddc5cd6f..430c58cd1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-8.js
@@ -10,26 +10,25 @@ description: >
[])
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [];
-f.length = [];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js
index 4f9f86265..744659f51 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-9.js
@@ -10,26 +10,25 @@ description: >
[0])
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [0];
-f.length = [0];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js
index af872fd92..d0650cfc4 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-1.js
@@ -7,22 +7,20 @@ es5id: 15.4.4.21-8-b-1
description: Array.prototype.reduce - no observable effects occur if 'len' is 0
---*/
-var accessed = false;
+ var accessed = false;
-var obj = {
- length: 0
-};
+ var obj = { length: 0 };
-Object.defineProperty(obj, "0", {
- get: function() {
- accessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, function() {});
+ Array.prototype.reduce.call(obj, function () { });
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js
index a3796550a..84a6d4181 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js
@@ -9,22 +9,18 @@ description: >
number of iterations in step 9
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- return idx;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ return idx;
+ }
-var obj = {
- 3: 12,
- 4: 9,
- length: 4
-};
+ var obj = { 3: 12, 4: 9, length: 4 };
-Object.defineProperty(obj, "2", {
- get: function() {
- obj.length = 10;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ obj.length = 10;
+ return 11;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn), 3, 'Array.prototype.reduce.call(obj, callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js
index 03fd27c09..95062f462 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js
@@ -7,37 +7,37 @@ es5id: 15.4.4.21-8-b-3
description: Array.prototype.reduce - loop is broken once 'kPresent' is true
---*/
-var called = 0;
-var testResult = false;
-var firstCalled = 0;
-var secondCalled = 0;
-
-function callbackfn(prevVal, val, idx, obj) {
- if (called === 0) {
- testResult = (idx === 1);
- }
- called++;
-}
-
-var arr = [, , ];
-
-Object.defineProperty(arr, "0", {
- get: function() {
- firstCalled++;
- return 11;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "1", {
- get: function() {
- secondCalled++;
- return 9;
- },
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ var called = 0;
+ var testResult = false;
+ var firstCalled = 0;
+ var secondCalled = 0;
+
+ function callbackfn(prevVal, val, idx, obj) {
+ if (called === 0) {
+ testResult = (idx === 1);
+ }
+ called++;
+ }
+
+ var arr = [, , ];
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ firstCalled++;
+ return 11;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ secondCalled++;
+ return 9;
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
assert.sameValue(firstCalled, 1, 'firstCalled');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js
index 15b0dc2a0..f2369b432 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-1.js
@@ -9,14 +9,14 @@ description: >
here
---*/
-var obj = {};
+ var obj = { };
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[1] = "accumulator";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[1] = "accumulator";
+ return 3;
+ },
+ configurable: true
+ });
-assert.sameValue(Array.prototype.reduce.call(obj, function() {}), "accumulator", 'Array.prototype.reduce.call(obj, function () { })');
+assert.sameValue(Array.prototype.reduce.call(obj, function () { }), "accumulator", 'Array.prototype.reduce.call(obj, function () { })');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js
index 9c51a152a..12c5e2fdd 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-ii-2.js
@@ -9,17 +9,14 @@ description: >
here
---*/
-var obj = {
- 1: "accumulator",
- 2: "another"
-};
+ var obj = { 1: "accumulator", 2: "another" };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[1];
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[1];
+ return 3;
+ },
+ configurable: true
+ });
-assert.notSameValue(Array.prototype.reduce.call(obj, function() {}), "accumulator", 'Array.prototype.reduce.call(obj, function () { })');
+assert.notSameValue(Array.prototype.reduce.call(obj, function () { }), "accumulator", 'Array.prototype.reduce.call(obj, function () { })');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js
index eff2f84cf..fbba69c12 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js
@@ -9,20 +9,14 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
-
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 2
-};
-Array.prototype.reduce.call(obj, callbackfn);
+ var obj = { 0: 0, 1: 1, 2: 2, length: 2 };
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js
index c3e9f4b4b..67b7b3f57 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js
@@ -9,23 +9,23 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-var arr = [, 1, 2];
+ var arr = [, 1, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js
index e5c7a7b97..e1f08e697 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js
@@ -10,33 +10,28 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
-
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "0", {
- get: function() {
- return "9";
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(child, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1, 2: 2 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return "9";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js
index 79eba4945..9d9b802d0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js
@@ -9,24 +9,24 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
-Array.prototype[0] = 0;
-var arr = [, 1, 2];
+ Array.prototype[0] = 0;
+ var arr = [, 1, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- return "9";
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return "9";
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js
index 62d5da4b4..00f0210ab 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js
@@ -10,39 +10,36 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
-
-var proto = {
- 1: 1,
- 2: 2
-};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "0", {
- get: function() {
- return "9";
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(child, callbackfn);
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
+
+ var proto = { 1: 1, 2: 2};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "0", {
+ get: function () {
+ return "9";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js
index 0b1781550..77a1084be 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js
@@ -9,29 +9,28 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var arr = [, 1, 2];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ return "9";
+ },
+ configurable: true
+ });
-var arr = [, 1, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- return "9";
- },
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js
index 6e2cc64b9..5344feebd 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js
@@ -9,32 +9,28 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ var proto = { 1: 1, 2: 2 };
-var proto = {
- 1: 1,
- 2: 2
-};
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn);
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js
index 2bfc2d804..c941e4581 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js
@@ -9,23 +9,22 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var arr = [, 1, 2];
-var arr = [, 1, 2];
-
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js
index 735d1c856..a411f9467 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-17.js
@@ -9,25 +9,20 @@ description: >
property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ var obj = { 1: 1, 2: 2, length: 3 };
-var obj = {
- 1: 1,
- 2: 2,
- length: 3
-};
+ Object.defineProperty(obj, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js
index 5b2a3b2f7..fbdfb97c8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-18.js
@@ -9,21 +9,20 @@ description: >
property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ var arr = [, 1, 2];
-var arr = [, 1, 2];
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js
index 9178b85fe..1611043a2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-19.js
@@ -10,27 +10,22 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ Object.prototype[0] = 0;
-Object.prototype[0] = 0;
+ var obj = { 1: 1, 2: 2, length: 3 };
-var obj = {
- 1: 1,
- 2: 2,
- length: 3
-};
+ Object.defineProperty(obj, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js
index f8ca72b6a..06d593f56 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-2.js
@@ -9,15 +9,14 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
-
-var arr = [0, 1, 2];
-arr.reduce(callbackfn);
+ var arr = [0, 1, 2];
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js
index e4793560e..2a313d786 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-20.js
@@ -10,21 +10,20 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ Array.prototype[0] = 0;
+ var arr = [, 1, 2];
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[0] = 0;
-var arr = [, 1, 2];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js
index 47a9a843b..d057b59b2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-21.js
@@ -9,30 +9,26 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ var proto = { 1: 1, 2: 2 };
-var proto = {
- 1: 1,
- 2: 2
-};
+ Object.defineProperty(proto, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(proto, "0", {
- set: function() {},
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn);
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js
index dc05e7860..f7d6f961c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-22.js
@@ -9,21 +9,20 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === undefined);
- }
-}
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ var arr = [, 1, 2];
-var arr = [, 1, 2];
-
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js
index 451955fcc..202236645 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-25.js
@@ -10,18 +10,17 @@ description: >
less than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn);
-};
-
-func(0, 1);
+ func(0, 1);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js
index eef4cdd6e..887f26315 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-26.js
@@ -10,19 +10,18 @@ description: >
number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (prevVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (prevVal === 1);
- }
-}
+ var func = function (a, b, c) {
+ delete arguments[0];
+ Array.prototype.reduce.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- delete arguments[0];
- Array.prototype.reduce.call(arguments, callbackfn);
-};
-
-func(0, 1, 2);
+ func(0, 1, 2);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js
index fc4013d2d..3f591f26e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-27.js
@@ -10,20 +10,19 @@ description: >
greater than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 3) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 3) {
- testResult = (prevVal === 2);
- }
-}
+ var func = function (a, b, c) {
+ delete arguments[0];
+ delete arguments[1];
+ Array.prototype.reduce.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- delete arguments[0];
- delete arguments[1];
- Array.prototype.reduce.call(arguments, callbackfn);
-};
-
-func(0, 1, 2, 3);
+ func(0, 1, 2, 3);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js
index 1c429e4c7..2a96496aa 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-28.js
@@ -9,15 +9,14 @@ description: >
implements its own property get method
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "0");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "0");
- }
-}
-
-var str = new String("012");
-Array.prototype.reduce.call(str, callbackfn);
+ var str = new String("012");
+ Array.prototype.reduce.call(str, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js
index 0fe7328fe..8f5e18db7 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-29.js
@@ -9,22 +9,21 @@ description: >
implements its own property get method
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ var obj = function (a, b, c) {
+ return a + b + c;
+ };
+ obj[0] = 0;
+ obj[1] = 1;
+ obj[2] = 2;
+ obj[3] = 3;
-var obj = function(a, b, c) {
- return a + b + c;
-};
-obj[0] = 0;
-obj[1] = 1;
-obj[2] = 2;
-obj[3] = 3;
-
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js
index 15298bc3e..d77985dd3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-3.js
@@ -10,28 +10,22 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[0] = "9";
+ child[1] = "1";
+ child.length = 3;
-var child = new Con();
-child[0] = "9";
-child[1] = "1";
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn);
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js
index 45f396f05..c307ddda9 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-30.js
@@ -9,36 +9,35 @@ description: >
iterations is observed in subsequent iterations on an Array
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var arr = [, , 2];
-var preIterVisible = false;
-
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return 100;
- }
- },
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var arr = [, , 2];
+ var preIterVisible = false;
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return 100;
+ }
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js
index 70282ce37..e035ae8e4 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-31.js
@@ -10,38 +10,35 @@ description: >
object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var obj = {
- length: 2
-};
-var preIterVisible = false;
-
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return 100;
- }
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var obj = { length: 2 };
+ var preIterVisible = false;
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return 100;
+ }
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js
index 50002a64e..132408543 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-32.js
@@ -9,29 +9,24 @@ description: >
on an Array-like object
---*/
-var accessed = false;
-var testResult = false;
+ var accessed = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx >= 1) {
+ accessed = true;
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (prevVal === 0);
- }
-}
-
-var obj = {
- 2: 2,
- 1: 1,
- length: 3
-};
-Object.defineProperty(obj, "0", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 2: 2, 1: 1, length: 3 };
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js
index 9f00cb900..be7c29e8b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-33.js
@@ -9,26 +9,25 @@ description: >
on an Array
---*/
-var accessed = false;
-var testResult = false;
+ var accessed = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx >= 1) {
+ accessed = true;
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (prevVal === 0);
- }
-}
+ var arr = [, 1, 2];
-var arr = [, 1, 2];
-
-Object.defineProperty(arr, "0", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js
index 72a46d6c8..26118b58f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-4.js
@@ -9,15 +9,14 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
-
-Array.prototype[0] = "9";
-[0, 1, 2].reduce(callbackfn);
+ Array.prototype[0] = "9";
+ [0, 1, 2].reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js
index 17c7e51c6..0c9aeb7b8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-5.js
@@ -10,34 +10,33 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "9");
- }
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: "9",
- configurable: true
-});
-child[1] = "1";
-
-Array.prototype.reduce.call(child, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "9");
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: "9",
+ configurable: true
+ });
+ child[1] = "1";
+
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js
index 2b0f847da..22b4af3ec 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-6.js
@@ -9,21 +9,20 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return "5";
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return "5";
- },
- configurable: true
-});
-
-[0, 1, 2].reduce(callbackfn);
+ [0, 1, 2].reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js
index 24fa5654c..6eaf1bac1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-7.js
@@ -9,26 +9,20 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn);
+ Array.prototype.reduce.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js
index 0eed56363..48166b7ee 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-8.js
@@ -9,17 +9,16 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
-
-Array.prototype[0] = 0;
-Array.prototype[1] = 1;
-Array.prototype[2] = 2;
-[, , , ].reduce(callbackfn);
+ Array.prototype[0] = 0;
+ Array.prototype[1] = 1;
+ Array.prototype[2] = 2;
+ [, , ,].reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js
index d61c61aea..82a348b81 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-9.js
@@ -9,26 +9,21 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 0);
- }
-}
+ var obj = { 1: 1, 2: 2, length: 3 };
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-var obj = {
- 1: 1,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js
index bd6232342..9fb6bc97c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-1.js
@@ -9,10 +9,11 @@ description: >
initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js
index f30f014b9..ae73a9a86 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-2.js
@@ -10,12 +10,13 @@ description: >
not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
-arr[9] = 1;
-arr.length = 5;
+ var arr = new Array(10);
+ arr[9] = 1;
+ arr.length = 5;
assert.throws(TypeError, function() {
- arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js
index 15d80dfa2..f4e87f5e0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-3.js
@@ -9,15 +9,16 @@ description: >
values are deleted and initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = [1, 2, 3, 4, 5];
-delete arr[0];
-delete arr[1];
-delete arr[2];
-delete arr[3];
-delete arr[4];
+ var arr = [1,2,3,4,5];
+ delete arr[0];
+ delete arr[1];
+ delete arr[2];
+ delete arr[3];
+ delete arr[4];
assert.throws(TypeError, function() {
- arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js
index db9f7aeba..3e712b86d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-4.js
@@ -9,11 +9,11 @@ description: >
properties but prototype contains a single property
---*/
-var arr = [, , , ];
+ var arr = [, , , ];
-try {
- Array.prototype[1] = "prototype";
- arr.reduce(function() {});
-} finally {
- delete Array.prototype[1];
-}
+ try {
+ Array.prototype[1] = "prototype";
+ arr.reduce(function () { });
+ } finally {
+ delete Array.prototype[1];
+ }
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js
index d04354342..756a4e93d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-5.js
@@ -9,18 +9,18 @@ description: >
side-effects that might be produced by step 2
---*/
-var obj = {};
+ var obj = { };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, function() {});
+ Array.prototype.reduce.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js
index 687736c2b..af901dc8e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-6.js
@@ -9,22 +9,22 @@ description: >
side-effects that might be produced by step 3
---*/
-var obj = {};
+ var obj = {};
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduce.call(obj, function() {});
+ Array.prototype.reduce.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js
index 178c34c70..adbdc526a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-7.js
@@ -9,15 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, function() {});
+ Array.prototype.reduce.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js
index 64f4b8f79..cd677383a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-8-c-8.js
@@ -9,19 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduce.call(obj, function() {});
+ Array.prototype.reduce.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js
index 2ac5c2e73..6076c9b10 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js
@@ -9,12 +9,12 @@ description: >
array after it is called
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- arr[5] = 6;
- arr[2] = 3;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ arr[5] = 6;
+ arr[2] = 3;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, , 4, '5'];
+ var arr = [1, 2, , 4, '5'];
assert.sameValue(arr.reduce(callbackfn), "105", 'arr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js
index fec5a6b8d..10a0e4368 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-10.js
@@ -9,12 +9,12 @@ description: >
consider new elements added to array after it is called
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- arr[5] = 6;
- arr[2] = 3;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ arr[5] = 6;
+ arr[2] = 3;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, , 4, '5'];
+ var arr = [1,2,,4,'5'];
assert.sameValue(arr.reduce(callbackfn, ""), "12345", 'arr.reduce(callbackfn, "")');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js
index 0db971210..2e74efa53 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-2.js
@@ -9,13 +9,13 @@ description: >
after it is called
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- arr[3] = -2;
- arr[4] = -1;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ arr[3] = -2;
+ arr[4] = -1;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.reduce(callbackfn), 3, 'arr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js
index 514951a74..e5942de1a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-3.js
@@ -9,14 +9,14 @@ description: >
after the call
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- delete arr[3];
- delete arr[4];
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ delete arr[3];
+ delete arr[4];
+ return prevVal + curVal;
+ }
-var arr = ['1', 2, 3, 4, 5];
+ var arr = ['1',2,3,4,5];
// two elements deleted
assert.sameValue(arr.reduce(callbackfn), "123", 'arr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js
index 6b9f7ca03..e1d2f69fb 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-4.js
@@ -9,12 +9,12 @@ description: >
Array.length is decreased
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- arr.length = 2;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ arr.length = 2;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.reduce(callbackfn), 3, 'arr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js
index 4fc56efea..b07ae9020 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-5.js
@@ -9,15 +9,14 @@ description: >
element
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return 2;
+ }
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
- return 2;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.reduce(callbackfn), 1, 'arr.reduce(callbackfn)');
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js
index 2d05468ef..a31d59a24 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-6.js
@@ -9,17 +9,17 @@ description: >
call when same index is also present in prototype
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- delete arr[3];
- delete arr[4];
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ delete arr[3];
+ delete arr[4];
+ return prevVal + curVal;
+ }
-Array.prototype[4] = 5;
-var arr = ['1', 2, 3, 4, 5];
-var res = arr.reduce(callbackfn);
-delete Array.prototype[4];
+ Array.prototype[4] = 5;
+ var arr = ['1',2,3,4,5];
+ var res = arr.reduce(callbackfn);
+ delete Array.prototype[4];
//one element acually deleted
assert.sameValue(res, "1235", 'res');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js
index f8c3a4b71..67e99779f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-7.js
@@ -9,13 +9,13 @@ description: >
deleted during the call
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- delete o.arr;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ delete o.arr;
+ return prevVal + curVal;
+ }
-var o = new Object();
-o.arr = ['1', 2, 3, 4, 5];
+ var o = new Object();
+ o.arr = ['1', 2, 3, 4, 5];
assert.sameValue(o.arr.reduce(callbackfn), "12345", 'o.arr.reduce(callbackfn)');
assert.sameValue(o.hasOwnProperty("arr"), false, 'o.hasOwnProperty("arr")');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js
index 6feccfcb3..beceef98c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-8.js
@@ -7,26 +7,23 @@ es5id: 15.4.4.21-9-8
description: Array.prototype.reduce - no observable effects occur if 'len' is 0
---*/
-var accessed = false;
-var callbackAccessed = false;
+ var accessed = false;
+ var callbackAccessed = false;
+ function callbackfn() {
+ callbackAccessed = true;
+ }
-function callbackfn() {
- callbackAccessed = true;
-}
+ var obj = { length: 0 };
-var obj = {
- length: 0
-};
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- accessed = true;
- return 10;
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, function() {}, "initialValue");
+ Array.prototype.reduce.call(obj, function () { }, "initialValue");
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(callbackAccessed, false, 'callbackAccessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js
index 0a6ba82e4..aa867346f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-9.js
@@ -9,23 +9,22 @@ description: >
number of iterations in step 9
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(accum, val, idx, obj) {
+ called++;
+ return accum + val;
+ }
-function callbackfn(accum, val, idx, obj) {
- called++;
- return accum + val;
-}
+ var arr = [0, 1, 2, 3];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
-var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 0;
- },
- configurable: true
-});
-
-var newAccum = arr.reduce(callbackfn, "initialValue");
+ var newAccum = arr.reduce(callbackfn, "initialValue");
assert.sameValue(newAccum, "initialValue01", 'newAccum');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js
index 274f1bb6e..e7f18d3bd 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-1.js
@@ -9,9 +9,10 @@ description: >
and initialValue is present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
+ var arr = new Array(10);
-assert.sameValue(arr.reduce(callbackfn, 5), 5, 'arr.reduce(callbackfn,5)');
+assert.sameValue(arr.reduce(callbackfn,5), 5, 'arr.reduce(callbackfn,5)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js
index bf0d29423..4adec3c10 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-10.js
@@ -10,31 +10,28 @@ description: >
Object
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: 2,
- length: 20
-};
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete Object.prototype[3];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete Object.prototype[3];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[3] = 1;
-Array.prototype.reduce.call(obj, callbackfn);
+ Object.prototype[3] = 1;
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js
index 4636bd54a..b2f71de95 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-11.js
@@ -9,27 +9,27 @@ description: >
causes deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [, , , 3];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ var arr = [, , , 3];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduce(callbackfn);
+ Array.prototype[1] = 1;
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js
index 7605c7ebe..c82150f24 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-12.js
@@ -10,30 +10,25 @@ description: >
on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 0,
- 1: 111,
- 4: 10,
- length: 10
-};
+ var obj = { 0: 0, 1: 111, 4: 10, length: 10 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.reduce.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js
index 4960d60e6..fa7a8f54d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-13.js
@@ -10,24 +10,24 @@ description: >
on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
-var arr = [0, 111];
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduce(callbackfn);
+ Array.prototype[1] = 1;
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js
index 0d00a3231..590122b87 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-14.js
@@ -9,27 +9,27 @@ description: >
causes deleted index property not to be visited
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var arr = [0, 1, 2, 3];
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js
index 4d42c2ca7..18cc65818 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-15.js
@@ -9,30 +9,30 @@ description: >
property in step 8 causes prototype index property to be visited
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- testResult = true;
- }
-}
-var arr = [0, 1, 2, 3];
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js
index 047fc4db9..29c1d4f8e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-16.js
@@ -10,31 +10,31 @@ description: >
flags: [noStrict]
---*/
-var testResult = false;
-
-function callbackfn(accum, val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- testResult = true;
- }
-}
-
-var arr = [0, 1, 2, 3];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
-
-arr.reduce(callbackfn);
+ var testResult = false;
+
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js
index 2364819b9..34cbe8651 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-17.js
@@ -9,31 +9,29 @@ description: >
visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 3 && val === 3) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 3 && val === 3) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 5
-};
+ var obj = { length: 5 };
-Object.defineProperty(obj, "1", {
- get: function() {
- Object.defineProperty(obj, "3", {
- get: function() {
- return 3;
- },
- configurable: true
- });
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ Object.defineProperty(obj, "3", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+ return 1;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js
index 94cdebfc3..9cede28d0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-18.js
@@ -9,29 +9,29 @@ description: >
visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn, "initialValue");
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js
index 719447c92..76fb7a817 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-19.js
@@ -9,31 +9,29 @@ description: >
on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 6
-};
+ var obj = { length: 6 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js
index eabeeb5eb..42f76e8fa 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-2.js
@@ -9,24 +9,24 @@ description: >
here
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 2 && val === "2") {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 2 && val === "2") {
+ testResult = true;
+ }
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "2";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "2";
+ return 3;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js
index 935e8ca31..2d52994db 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-20.js
@@ -9,29 +9,29 @@ description: >
visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn, "initialValue");
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js
index 200ac1c68..f5ae4f380 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-21.js
@@ -9,37 +9,34 @@ description: >
index property not to be visited on an Array-like object
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var obj = {
- 5: 10,
- length: 10
-};
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 5: 10, length: 10 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js
index 64402e07c..f824832cb 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-22.js
@@ -9,34 +9,34 @@ description: >
index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var arr = [1, 2, 4];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
-
-arr.reduce(callbackfn, "initialValue");
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [1, 2, 4];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js
index 236167f7e..3ee4365ed 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-23.js
@@ -9,31 +9,28 @@ description: >
deleted index property not to be visited on an Array-like Object
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: 2,
- length: 20
-};
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete Object.prototype[3];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete Object.prototype[3];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[3] = 1;
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Object.prototype[3] = 1;
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js
index 7a2cbcd16..18d1e2069 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-24.js
@@ -9,27 +9,27 @@ description: >
deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [0, , , 3];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ var arr = [0, , , 3];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduce(callbackfn, "initialValue");
+ Array.prototype[1] = 1;
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js
index 311f9f21f..83c1b449e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-25.js
@@ -10,30 +10,25 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 0,
- 1: 111,
- 4: 10,
- length: 10
-};
+ var obj = { 0: 0, 1: 111, 4: 10, length: 10 };
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Object.prototype[1] = 1;
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js
index 8a570c25e..c5b22131b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-26.js
@@ -9,24 +9,24 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
-var arr = [0, 111];
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduce(callbackfn, "initialValue");
+ Array.prototype[1] = 1;
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js
index bfbf66fbf..a20faec87 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-27.js
@@ -9,27 +9,27 @@ description: >
index property not to be visited
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var arr = [0, 1, 2, 3];
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn, "initialValue");
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js
index ba16dafa8..44bdb414c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-28.js
@@ -9,30 +9,30 @@ description: >
property causes prototype index property to be visited
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- testResult = true;
- }
-}
-var arr = [0, 1, 2, 3];
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn, "initialValue");
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js
index 1c872c518..a4f516743 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-29.js
@@ -10,31 +10,31 @@ description: >
flags: [noStrict]
---*/
-var testResult = false;
-
-function callbackfn(accum, val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- testResult = true;
- }
-}
-
-var arr = [0, 1, 2, 3];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
-
-arr.reduce(callbackfn, "initialValue");
+ var testResult = false;
+
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js
index 2f72b891a..8f8382931 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-3.js
@@ -9,30 +9,27 @@ description: >
here
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: "2",
- 3: 10
-};
+ var obj = { 2: "2", 3: 10 };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[2];
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 5;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduce.call(obj, callbackfn, "initialValue");
assert(accessed, 'accessed !== true');
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js
index 208fd04f2..249f49a29 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-4.js
@@ -9,31 +9,29 @@ description: >
8 are visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 3 && val === 3) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 3 && val === 3) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 5
-};
+ var obj = { length: 5 };
-Object.defineProperty(obj, "1", {
- get: function() {
- Object.defineProperty(obj, "3", {
- get: function() {
- return 3;
- },
- configurable: true
- });
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ Object.defineProperty(obj, "3", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+ return 1;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js
index 872321367..43b8766cd 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-5.js
@@ -9,29 +9,29 @@ description: >
8 are visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 1) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js
index 6002cbd91..85e075d85 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-6.js
@@ -9,31 +9,29 @@ description: >
are visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 6
-};
+ var obj = { length: 6 };
-Object.defineProperty(obj, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.reduce.call(obj, callbackfn);
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js
index b41a6c137..67e1fc135 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-7.js
@@ -9,29 +9,29 @@ description: >
are visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(accum, val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js
index 4386fa4a4..219d2df56 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-8.js
@@ -9,37 +9,34 @@ description: >
deleted index property not to be visited on an Array-like object
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var obj = {
- 5: 10,
- length: 10
-};
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "0", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn);
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 5: 10, length: 10 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js
index 2f9739a3d..ab402f336 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-b-9.js
@@ -9,27 +9,27 @@ description: >
deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(accum, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(accum, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [1, 2, 4];
+ var arr = [1, 2, 4];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduce(callbackfn);
+ arr.reduce(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js
index 82bb1fd5f..9f22078b8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-1.js
@@ -9,16 +9,15 @@ description: >
been assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return curVal;
+ }
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
- return curVal;
-}
-
-var arr = new Array(10);
-arr[0] = arr[1] = undefined; //explicitly assigning a value
+ var arr = new Array(10);
+ arr[0] = arr[1] = undefined; //explicitly assigning a value
assert.sameValue(arr.reduce(callbackfn), undefined, 'arr.reduce(callbackfn)');
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js
index 83910eb35..8e4385ae2 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-1.js
@@ -9,21 +9,15 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 2
-};
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ var obj = { 0: 0, 1: 1, 2: 2, length: 2 };
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js
index a297b0361..35db68b11 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-10.js
@@ -9,24 +9,23 @@ description: >
property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js
index b5cc2ad9b..3468f85ed 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-11.js
@@ -10,34 +10,29 @@ description: >
Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
-}
-
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return "11";
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1, 2: 2 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return "11";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js
index de4c3f77b..85072151e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-12.js
@@ -9,25 +9,24 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
-}
+ Array.prototype[1] = 1;
+ var arr = [0, ,2];
-Array.prototype[1] = 1;
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "11";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return "11";
- },
- configurable: true
-});
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js
index c29ed6061..49d727d7a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-13.js
@@ -10,40 +10,36 @@ description: >
Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
-}
-
-var proto = {
- 0: 0,
- 2: 2
-};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return "11";
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+ }
+
+ var proto = { 0: 0, 2: 2};
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return "11";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js
index 5d2ea3e9c..439002290 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js
@@ -9,30 +9,29 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ var arr = [0, ,2];
-var arr = [0, , 2];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "11";
- },
- configurable: true
-});
-arr.reduce(callbackfn, initialValue);
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "11";
+ },
+ configurable: true
+ });
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js
index fb6f4b430..8a4819778 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-15.js
@@ -9,33 +9,29 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var proto = {
- 0: 0,
- 2: 2
-};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var proto = { 0: 0, 2: 2 };
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js
index ea5b70bf7..0b26a8231 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-16.js
@@ -9,24 +9,23 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ var arr = [0, , 2, ];
-var arr = [0, , 2, ];
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js
index 261293885..72e9c9c3e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-17.js
@@ -9,26 +9,21 @@ description: >
property without a get function on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
+ var obj = { 0: 0, 2: 2, length: 3 };
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js
index 8b1b27917..e5e1c98e3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-18.js
@@ -9,22 +9,21 @@ description: >
property without a get function on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- set: function() {},
- configurable: true
-});
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js
index d385edd58..a8ab13f94 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-19.js
@@ -10,33 +10,28 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
-
-Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
+
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+
+ var obj = { 0: 0, 2: 2, length: 3 };
+
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js
index bec49675d..cbabbcf45 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-2.js
@@ -9,16 +9,15 @@ description: >
property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var arr = [0, 1];
-arr.reduce(callbackfn, initialValue);
+ var arr = [0, 1];
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js
index 96d6089f4..5596e002f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-20.js
@@ -10,28 +10,27 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
-var arr = [0, , 2];
-Object.defineProperty(arr, "1", {
- set: function() {},
- configurable: true
-});
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js
index 4994164fd..160a4ea8e 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-21.js
@@ -9,31 +9,27 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
+ var proto = { 0: 0, 2: 2 };
-var proto = {
- 0: 0,
- 2: 2
-};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js
index b906e19e7..e6a171d69 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-22.js
@@ -9,22 +9,21 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === undefined);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === undefined);
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- set: function() {},
- configurable: true
-});
+ var arr = [0, , 2];
-var arr = [0, , 2];
-
-arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js
index 08713388f..dc5a6a969 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-25.js
@@ -10,19 +10,18 @@ description: >
less than number of parameters)
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn, initialValue);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn, initialValue);
-};
-
-func(0, 1);
+ func(0, 1);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js
index d8ce4350b..a941dc65f 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-26.js
@@ -10,19 +10,18 @@ description: >
number of parameters)
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (curVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (curVal === 2);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn, initialValue);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn, initialValue);
-};
-
-func(0, 1, 2);
+ func(0, 1, 2);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js
index 40b63f987..2907f2210 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-27.js
@@ -10,19 +10,18 @@ description: >
greater than number of parameters)
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 3) {
+ testResult = (curVal === 3);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 3) {
- testResult = (curVal === 3);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduce.call(arguments, callbackfn, initialValue);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduce.call(arguments, callbackfn, initialValue);
-};
-
-func(0, 1, 2, 3);
+ func(0, 1, 2, 3);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js
index 92981a4a9..9422c48fc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-28.js
@@ -9,17 +9,16 @@ description: >
implements its own property get method
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
+ var str = new String("012");
-var str = new String("012");
-
-Array.prototype.reduce.call(str, callbackfn, initialValue);
+ Array.prototype.reduce.call(str, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js
index 270742aa9..9003db41a 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-29.js
@@ -9,23 +9,22 @@ description: >
implements its own property get method
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var obj = function (a, b, c) {
+ return a + b + c;
+ };
+ obj[0] = 0;
+ obj[1] = 1;
+ obj[2] = 2;
+ obj[3] = 3;
-var obj = function(a, b, c) {
- return a + b + c;
-};
-obj[0] = 0;
-obj[1] = 1;
-obj[2] = 2;
-obj[3] = 3;
-
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js
index 0a23d5c01..19a4e19a0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-3.js
@@ -10,29 +10,23 @@ description: >
Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "11");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "11");
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 2
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[1] = "11";
+ child[2] = "22";
+ child.length = 3;
-var child = new Con();
-child[1] = "11";
-child[2] = "22";
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js
index 46dfa9feb..49c26b0e6 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-30.js
@@ -9,37 +9,36 @@ description: >
iterations is observed on an Array
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var arr = [, , 2];
-var preIterVisible = false;
-
-Object.defineProperty(arr, "0", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return 100;
- }
- },
- configurable: true
-});
-
-arr.reduce(callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var arr = [, , 2];
+ var preIterVisible = false;
+
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return 100;
+ }
+ },
+ configurable: true
+ });
+
+ arr.reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js
index db862cce1..f948d2978 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js
@@ -9,40 +9,36 @@ description: >
iterations is observed on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var obj = {
- 2: 2,
- length: 3
-};
-var preIterVisible = false;
-
-Object.defineProperty(obj, "0", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return "11";
- }
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var obj = { 2: 2, length: 3 };
+ var preIterVisible = false;
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "11";
+ }
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js
index 787d0261c..3654543c5 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-32.js
@@ -9,30 +9,25 @@ description: >
terminate iteration on an Array-like object
---*/
-var accessed = false;
-var testResult = false;
-var initialValue = 0;
+ var accessed = false;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx >= 1) {
+ accessed = true;
+ testResult = (curVal >= 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (curVal >= 1);
- }
-}
-
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
});
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js
index eb596116a..45c8487f9 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-33.js
@@ -9,27 +9,26 @@ description: >
terminate iteration on an Array
---*/
-var accessed = false;
-var testResult = false;
-var initialValue = 0;
+ var accessed = false;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx >= 1) {
+ accessed = true;
+ testResult = (curVal >= 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx >= 1) {
- accessed = true;
- testResult = (curVal >= 1);
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.reduce(callbackfn, initialValue);
+ arr.reduce(callbackfn, initialValue);
});
assert.sameValue(accessed, false, 'accessed');
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js
index 0f26cabfe..5be0e63fc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-4.js
@@ -9,16 +9,15 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Array.prototype[1] = "3";
-[0, 1, 2].reduce(callbackfn, initialValue);
+ Array.prototype[1] = "3";
+ [0, 1, 2].reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js
index 44cb554c7..fc93b44d1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-5.js
@@ -10,37 +10,36 @@ description: >
Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (curVal === "9");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (curVal === "9");
- }
-}
+ var proto = {};
-var proto = {};
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "0", {
- get: function() {
- return 0;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 2;
-var child = new Con();
-child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: "9",
+ configurable: true
+ });
-Object.defineProperty(child, "0", {
- value: "9",
- configurable: true
-});
+ child[1] = "1";
-child[1] = "1";
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js
index d3aca565c..ee27f6242 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-6.js
@@ -9,21 +9,20 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return "9";
- },
- configurable: true
-});
-[0, 1, 2].reduce(callbackfn, initialValue);
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return "9";
+ },
+ configurable: true
+ });
+ [0, 1, 2].reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js
index 49844b47d..b20d880b3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-7.js
@@ -9,27 +9,21 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduce.call(child, callbackfn, initialValue);
+ Array.prototype.reduce.call(child, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js
index 08a408abd..5906f0d47 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-8.js
@@ -9,18 +9,17 @@ description: >
property on an Array
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Array.prototype[0] = 0;
-Array.prototype[1] = 1;
-Array.prototype[2] = 2;
-[, , , ].reduce(callbackfn, initialValue);
+ Array.prototype[0] = 0;
+ Array.prototype[1] = 1;
+ Array.prototype[2] = 2;
+ [, , , ].reduce(callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js
index 5188213e3..8dcce90a1 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-9.js
@@ -9,27 +9,22 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-Array.prototype.reduce.call(obj, callbackfn, initialValue);
+ Array.prototype.reduce.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js
index af3c3074e..0b5a92f76 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-1.js
@@ -9,14 +9,14 @@ description: >
(initialvalue not passed)
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- if (idx > 0 && obj[idx] === curVal && obj[idx - 1] === prevVal)
- return curVal;
- else
- return false;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ if(idx > 0 && obj[idx] === curVal && obj[idx-1] === prevVal)
+ return curVal;
+ else
+ return false;
+ }
-var arr = [0, 1, true, null, new Object(), "five"];
+ var arr = [0,1,true,null,new Object(),"five"];
assert.sameValue(arr.reduce(callbackfn), "five", 'arr.reduce(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js
index 9a9a5567d..6492c1d4b 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-10.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal) {
+ result = (prevVal === 1);
+ }
-function callbackfn(prevVal) {
- result = (prevVal === 1);
-}
-
-[11].reduce(callbackfn, 1);
+ [11].reduce(callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js
index 503028a43..fe374ad09 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-11.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal, curVal) {
+ result = (curVal > 10 && 1 === prevVal);
+ }
-function callbackfn(prevVal, curVal) {
- result = (curVal > 10 && 1 === prevVal);
-}
-
-[11].reduce(callbackfn, 1);
+ [11].reduce(callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js
index 58b12b3d2..282d5ccc5 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-12.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal, curVal, idx) {
+ result = (prevVal === 1 && arguments[3][idx] === curVal);
+ }
-function callbackfn(prevVal, curVal, idx) {
- result = (prevVal === 1 && arguments[3][idx] === curVal);
-}
-
-[11].reduce(callbackfn, 1);
+ [11].reduce(callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js
index 170366208..24cb3df06 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-13.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ result = (prevVal === 1 && obj[idx] === curVal);
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- result = (prevVal === 1 && obj[idx] === curVal);
-}
-
-[11].reduce(callbackfn, 1);
+ [11].reduce(callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js
index 12cf2c428..170de856d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-14.js
@@ -7,12 +7,11 @@ es5id: 15.4.4.21-9-c-ii-14
description: Array.prototype.reduce - callbackfn that uses arguments
---*/
-var result = false;
+ var result = false;
+ function callbackfn() {
+ result = (arguments[0] === 1 && arguments[3][arguments[2]] === arguments[1]);
+ }
-function callbackfn() {
- result = (arguments[0] === 1 && arguments[3][arguments[2]] === arguments[1]);
-}
-
-[11].reduce(callbackfn, 1);
+ [11].reduce(callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js
index 976b1a269..3dcd208df 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-16.js
@@ -7,29 +7,24 @@ es5id: 15.4.4.21-9-c-ii-16
description: Array.prototype.reduce - non-indexed properties are not called
---*/
-var accessed = false;
-var result1 = true;
-var result2 = true;
+ var accessed = false;
+ var result1 = true;
+ var result2 = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (curVal === 8) {
- result1 = false;
- }
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (curVal === 8) {
+ result1 = false;
+ }
- if (prevVal === 8) {
- result2 = false;
- }
-}
+ if (prevVal === 8) {
+ result2 = false;
+ }
+ }
-var obj = {
- 0: 11,
- 10: 12,
- non_index_property: 8,
- length: 20
-};
+ var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 };
-Array.prototype.reduce.call(obj, callbackfn, 1);
+ Array.prototype.reduce.call(obj, callbackfn, 1);
assert(result1, 'result1 !== true');
assert(result2, 'result2 !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js
index 1179c4e14..0c9704158 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js
@@ -9,20 +9,19 @@ description: >
is the result of previous iteration on an Array
---*/
-var result = true;
-var accessed = false;
-var preIteration = 1;
+ var result = true;
+ var accessed = false;
+ var preIteration = 1;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (preIteration !== prevVal) {
+ result = false;
+ }
+ preIteration = curVal;
+ return curVal;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (preIteration !== prevVal) {
- result = false;
- }
- preIteration = curVal;
- return curVal;
-}
-
-[11, 12, 13].reduce(callbackfn, 1);
+ [11, 12, 13].reduce(callbackfn, 1);
assert(result, 'result !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js
index acb90c345..52d3f41d3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-18.js
@@ -10,20 +10,15 @@ description: >
Array-like object
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ result = (arguments[0] === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- result = (arguments[0] === 1);
- }
-}
+ var obj = { 0: 11, 1: 9, length: 2 };
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
-
-Array.prototype.reduce.call(obj, callbackfn, 1);
+ Array.prototype.reduce.call(obj, callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js
index 9f6c78aef..b42385702 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-19.js
@@ -10,17 +10,16 @@ description: >
undefined when 'initialValue' is not present on an Array
---*/
-var called = 0;
-var result = false;
+ var called = 0;
+ var result = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ called++;
+ if (idx === 1) {
+ result = (prevVal === 11) && curVal === 9;
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- called++;
- if (idx === 1) {
- result = (prevVal === 11) && curVal === 9;
- }
-}
-
-[11, 9].reduce(callbackfn);
+ [11, 9].reduce(callbackfn);
assert(result, 'result !== true');
assert.sameValue(called, 1, 'called');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js
index 024016564..88c46fffc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js
@@ -9,19 +9,18 @@ description: >
(initialvalue passed)
---*/
-var bParCorrect = false;
+ var bParCorrect = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ if(idx === 0 && obj[idx] === curVal && prevVal === initialValue)
+ return curVal;
+ else if(idx > 0 && obj[idx] === curVal && obj[idx-1] === prevVal)
+ return curVal;
+ else
+ return false;
+ }
-function callbackfn(prevVal, curVal, idx, obj)
-{
- if (idx === 0 && obj[idx] === curVal && prevVal === initialValue)
- return curVal;
- else if (idx > 0 && obj[idx] === curVal && obj[idx - 1] === prevVal)
- return curVal;
- else
- return false;
-}
+ var arr = [0,1,true,null,new Object(),"five"];
+ var initialValue = 5.5;
-var arr = [0, 1, true, null, new Object(), "five"];
-var initialValue = 5.5;
-
-assert.sameValue(arr.reduce(callbackfn, initialValue), "five", 'arr.reduce(callbackfn,initialValue)');
+assert.sameValue(arr.reduce(callbackfn,initialValue), "five", 'arr.reduce(callbackfn,initialValue)');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js
index 2e7552356..7b7cffb19 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-20.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.21-9-c-ii-20
description: Array.prototype.reduce - undefined can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof prevVal === "undefined";
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof prevVal === "undefined";
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, undefined), true, 'Array.prototype.reduce.call(obj, callbackfn, undefined)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js
index 1864d08fa..1b2799701 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-21.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.21-9-c-ii-21
description: Array.prototype.reduce - null can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === null;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === null;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, null), true, 'Array.prototype.reduce.call(obj, callbackfn, null)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js
index 272db1b96..7a7f286fc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-22.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === false;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, false), true, 'Array.prototype.reduce.call(obj, callbackfn, false)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js
index 41fbfeb16..0ccff0d30 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-23.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === 12;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === 12;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 12), true, 'Array.prototype.reduce.call(obj, callbackfn, 12)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js
index 64fbb4eb3..5c3b4c73d 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-24.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === "hello_";
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === "hello_";
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, "hello_"), true, 'Array.prototype.reduce.call(obj, callbackfn, "hello_")');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js
index 7a20725f1..fe4c9a0a0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-25.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-25
description: Array.prototype.reduce - Function object can be used as accumulator
---*/
-var objFunction = function() {};
+ var objFunction = function () { };
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objFunction;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objFunction;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objFunction), true, 'Array.prototype.reduce.call(obj, callbackfn, objFunction)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js
index 44cd75abd..8402e82fa 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-26.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-26
description: Array.prototype.reduce - Array object can be used as accumulator
---*/
-var objArray = new Array(10);
+ var objArray = new Array(10);
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objArray;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objArray;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objArray), true, 'Array.prototype.reduce.call(obj, callbackfn, objArray)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js
index decc22588..951df7bd9 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-27.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-27
description: Array.prototype.reduce - String object can be used as accumulator
---*/
-var objString = new String();
+ var objString = new String();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objString;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objString;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objString), true, 'Array.prototype.reduce.call(obj, callbackfn, objString)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js
index 2eca0b849..ca6c358b3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-28.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-28
description: Array.prototype.reduce - Boolean object can be used as accumulator
---*/
-var objBoolean = new Boolean();
+ var objBoolean = new Boolean();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objBoolean;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objBoolean;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objBoolean), true, 'Array.prototype.reduce.call(obj, callbackfn, objBoolean)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js
index 03ed7c189..251e405a9 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-29.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-29
description: Array.prototype.reduce - Number object can be used as accumulator
---*/
-var objNumber = new Number();
+ var objNumber = new Number();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objNumber;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objNumber;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objNumber), true, 'Array.prototype.reduce.call(obj, callbackfn, objNumber)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js
index dfd739127..1f93af90c 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-3.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.21-9-c-ii-3
description: Array.prototype.reduce - callbackfn takes 4 arguments
---*/
-var bCalled = false;
+ var bCalled = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ bCalled = true;
+ if(prevVal === true && arguments.length === 4)
+ return true;
+ else
+ return false;
+ }
+ var arr = [0,1,2,3,4,5,6,7,8,9];
-function callbackfn(prevVal, curVal, idx, obj)
-{
- bCalled = true;
- if (prevVal === true && arguments.length === 4)
- return true;
- else
- return false;
-}
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-
-assert.sameValue(arr.reduce(callbackfn, true), true, 'arr.reduce(callbackfn,true)');
+assert.sameValue(arr.reduce(callbackfn,true), true, 'arr.reduce(callbackfn,true)');
assert.sameValue(bCalled, true, 'bCalled');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js
index 2cc426a8d..0b3202e74 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-30.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.21-9-c-ii-30
description: Array.prototype.reduce - the Math object can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === Math;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === Math;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, Math), true, 'Array.prototype.reduce.call(obj, callbackfn, Math)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js
index 4bf720831..6e4c92b93 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-31.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-31
description: Array.prototype.reduce - Date object can be used as accumulator
---*/
-var objDate = new Date();
+ var objDate = new Date();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objDate;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objDate;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objDate), true, 'Array.prototype.reduce.call(obj, callbackfn, objDate)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js
index de51b59f3..8a0f61496 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-32
description: Array.prototype.reduce - RegExp object can be used as accumulator
---*/
-var objRegExp = new RegExp();
+ var objRegExp = new RegExp();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objRegExp;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objRegExp;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objRegExp), true, 'Array.prototype.reduce.call(obj, callbackfn, objRegExp)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js
index b5cdc3cc8..c010c39ff 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-33.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.21-9-c-ii-33
description: Array.prototype.reduce - the JSON can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === JSON;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === JSON;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, JSON), true, 'Array.prototype.reduce.call(obj, callbackfn, JSON)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js
index 9df298c15..8f6dbd888 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-34.js
@@ -7,19 +7,15 @@ es5id: 15.4.4.21-9-c-ii-34
description: Array.prototype.reduce - Error object can be used as accumulator
---*/
-var objError = new RangeError();
+ var objError = new RangeError();
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objError;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objError;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, objError), true, 'Array.prototype.reduce.call(obj, callbackfn, objError)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js
index 8d01e4e83..30daec0a8 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js
@@ -9,22 +9,19 @@ description: >
accumulator
---*/
-var accessed = false;
-var arg;
+ var accessed = false;
+ var arg;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === arg;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === arg;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-(function fun() {
- arg = arguments;
-}(10, 11, 12, 13));
+ (function fun() {
+ arg = arguments;
+ }(10, 11, 12, 13));
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, arg), true, 'Array.prototype.reduce.call(obj, callbackfn, arg)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js
index bb97f5f54..a0a46fa90 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-37.js
@@ -10,17 +10,13 @@ description: >
---*/
var global = this;
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === global;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === global;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, this), true, 'Array.prototype.reduce.call(obj, callbackfn, this)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js
index 89872b127..1d1517917 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js
@@ -10,14 +10,13 @@ description: >
flags: [noStrict]
---*/
-var innerThisCorrect = false;
-
-function callbackfn(prevVal, curVal, idx, obj)
-{
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
-[0].reduce(callbackfn, true);
+ var innerThisCorrect = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
+ [0].reduce(callbackfn,true);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js
index f0982335e..5b70ba220 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js
@@ -9,21 +9,21 @@ description: >
order on an Array
---*/
-var arr = [0, 1, 2];
-var lastIdx = 0;
-var result = true;
-var accessed = false;
+ var arr = [0, 1, 2];
+ var lastIdx = 0;
+ var result = true;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (lastIdx !== idx) {
- result = false;
- } else {
- lastIdx++;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (lastIdx !== idx) {
+ result = false;
+ } else {
+ lastIdx++;
+ }
+ }
-arr.reduce(callbackfn, 11);
+ arr.reduce(callbackfn, 11);
assert(result, 'result !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js
index 2a7ad3a6a..4476ea3d0 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-5.js
@@ -9,26 +9,26 @@ description: >
iteration and not prior to starting the loop on an Array
---*/
-var result = true;
-var kIndex = [];
-var called = 0;
+ var result = true;
+ var kIndex = [];
+ var called = 0;
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(prevVal, curVal, idx, obj) {
- //Each position should be visited one time, which means k is accessed one time during iterations.
- called++;
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
- result = false;
- }
- kIndex[idx] = 1;
- } else {
- result = false;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(prevVal, curVal, idx, obj) {
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ called++;
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
+ result = false;
+ }
+ kIndex[idx] = 1;
+ } else {
+ result = false;
+ }
+ }
-[11, 12, 13, 14].reduce(callbackfn, 1);
+ [11, 12, 13, 14].reduce(callbackfn, 1);
assert(result, 'result !== true');
assert.sameValue(called, 4, 'called');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js
index 31c3a8c58..9f76afad6 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-7.js
@@ -9,24 +9,19 @@ description: >
callbackfn terminate iteration
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 0) {
- accessed = true;
- }
- if (idx === 0) {
- throw new Error("Exception occurred in callbackfn");
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 0) {
+ accessed = true;
+ }
+ if (idx === 0) {
+ throw new Error("Exception occurred in callbackfn");
+ }
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Error, function() {
- Array.prototype.reduce.call(obj, callbackfn, 1);
+ Array.prototype.reduce.call(obj, callbackfn, 1);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js
index e3ed219e6..b3395afcc 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-8.js
@@ -9,24 +9,19 @@ description: >
iterations is observed
---*/
-var result = false;
+ var result = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ obj[idx + 1] = 8;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- obj[idx + 1] = 8;
- }
+ if (idx === 1) {
+ result = (curVal === 8);
+ }
+ }
- if (idx === 1) {
- result = (curVal === 8);
- }
-}
+ var obj = { 0: 11, 1: 12, length: 2 };
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
-
-Array.prototype.reduce.call(obj, callbackfn, 1);
+ Array.prototype.reduce.call(obj, callbackfn, 1);
assert(result, 'result !== true');
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js
index c9d0ae895..a8f5758d3 100644
--- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js
+++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js
@@ -9,12 +9,11 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn() {
+ called++;
+ }
-function callbackfn() {
- called++;
-}
-
-[11, 12].reduce(callbackfn, 1);
+ [11, 12].reduce(callbackfn, 1);
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js
index 5a64f1472..7650b6531 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.reduceRight applied to undefined throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(undefined);
+ Array.prototype.reduceRight.call(undefined);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js
index fb0a1f9f8..341dac729 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-10.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-10
description: Array.prototype.reduceRight applied to the Math object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return '[object Math]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return '[object Math]' === Object.prototype.toString.call(obj);
+ }
-Math.length = 1;
-Math[0] = 1;
+ Math.length = 1;
+ Math[0] = 1;
assert(Array.prototype.reduceRight.call(Math, callbackfn, 1), 'Array.prototype.reduceRight.call(Math, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js
index 610b41291..447771e6e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-11.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-11
description: Array.prototype.reduceRight applied to Date object
---*/
-var obj = new Date();
-obj.length = 1;
-obj[0] = 1;
-var accessed = false;
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Date;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Date;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 1), 'Array.prototype.reduceRight.call(obj, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js
index efc9fa2e3..06834d39e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-12.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-12
description: Array.prototype.reduceRight applied to RegExp object
---*/
-var obj = new RegExp();
-obj.length = 1;
-obj[0] = 1;
-var accessed = false;
+ var obj = new RegExp();
+ obj.length = 1;
+ obj[0] = 1;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof RegExp;
-}
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof RegExp;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 1), 'Array.prototype.reduceRight.call(obj, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js
index 822d57425..9d6b8f83c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-13.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-13
description: Array.prototype.reduceRight applied to the JSON object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return ('[object JSON]' === Object.prototype.toString.call(obj));
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return ('[object JSON]' === Object.prototype.toString.call(obj));
+ }
-JSON.length = 1;
-JSON[0] = 1;
+ JSON.length = 1;
+ JSON[0] = 1;
assert(Array.prototype.reduceRight.call(JSON, callbackfn, 1), 'Array.prototype.reduceRight.call(JSON, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js
index 4d8557c59..6b7e76ea4 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-14.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-14
description: Array.prototype.reduceRight applied to Error object
---*/
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
-var accessed = false;
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof Error;
-}
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof Error;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 1), 'Array.prototype.reduceRight.call(obj, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js
index a2bb8a9ff..8e739dfab 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-15.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.22-1-15
description: Array.prototype.reduceRight applied to the Arguments object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return '[object Arguments]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return '[object Arguments]' === Object.prototype.toString.call(obj);
+ }
-var obj = (function() {
- return arguments;
-}("a", "b"));
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
assert(Array.prototype.reduceRight.call(obj, callbackfn, "a"), 'Array.prototype.reduceRight.call(obj, callbackfn, "a") !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js
index cf08c68a5..602cef5da 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.reduceRight applied to null throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(null);
+ Array.prototype.reduceRight.call(null);
});
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 6fca6c304..54f2c207a 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');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js
index d78244685..77427f29c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-4.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.22-1-4
description: Array.prototype.reduceRight applied to Boolean object
---*/
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
-var accessed = false;
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
+ 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;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js
index c83b156f0..59244bbe9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-5.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.22-1-5
description: Array.prototype.reduceRight applied to number primitive
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Number;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Number;
+ }
-Number.prototype[0] = 1;
-Number.prototype.length = 1;
+ Number.prototype[0] = 1;
+ Number.prototype.length = 1;
assert(Array.prototype.reduceRight.call(2.5, callbackfn, 1), 'Array.prototype.reduceRight.call(2.5, callbackfn, 1) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js
index 9d1c2792a..a0c2df0e8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-6.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.22-1-6
description: Array.prototype.reduceRight applied to Number object
---*/
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 12;
-var accessed = false;
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof Number;
-}
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof Number;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js
index 7c3dabefe..6e368cfff 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-7.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.22-1-7
description: Array.prototype.reduceRight applied to string primitive
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof String;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof String;
+ }
assert(Array.prototype.reduceRight.call("hello\nworld\\!", callbackfn, "h"), 'Array.prototype.reduceRight.call("hello\nworld\\!", callbackfn, "h") !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js
index 9f6ee35db..d034b48b3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-8.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.22-1-8
description: Array.prototype.reduceRight applied to String object
---*/
-var obj = new String("hello\nworld\\!");
-var accessed = false;
+ var obj = new String("hello\nworld\\!");
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof String;
-}
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof String;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, "h"), 'Array.prototype.reduceRight.call(obj, callbackfn, "h") !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js
index 42e6c8ca6..1820f546c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-1-9.js
@@ -7,17 +7,17 @@ es5id: 15.4.4.22-1-9
description: Array.prototype.reduceRight applied to Function object
---*/
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
-var accessed = false;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof Function;
-}
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof Function;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js
index eaaca4897..d9b0c874d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-1.js
@@ -9,12 +9,12 @@ description: >
is called on
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return 1;
-}
-var srcArr = [1, 2, 3, 4, 5];
-srcArr.reduceRight(callbackfn);
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return 1;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr.reduceRight(callbackfn);
assert.sameValue(srcArr[0], 1, 'srcArr[0]');
assert.sameValue(srcArr[1], 2, 'srcArr[1]');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js
index cffd5e08e..1b34162cf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-2.js
@@ -9,10 +9,10 @@ description: >
indices
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return prevVal + curVal;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return prevVal + curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
assert.sameValue(srcArr.reduceRight(callbackfn), '54321', 'srcArr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js
index de4a59b0c..6e47fd871 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-3.js
@@ -7,11 +7,10 @@ es5id: 15.4.4.22-10-3
description: Array.prototype.reduceRight - subclassed array with length 1
---*/
-foo.prototype = [1];
+ foo.prototype = [1];
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
-
-function cb() {}
+ function cb(){}
assert.sameValue(f.reduceRight(cb), 1, 'f.reduceRight(cb)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js
index 7726d9fde..76afe6029 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-4.js
@@ -9,13 +9,10 @@ description: >
than 1
---*/
-foo.prototype = new Array(0, 1, 2, 3);
+ foo.prototype = new Array(0, 1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
-
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
assert.sameValue(f.reduceRight(cb), 6, 'f.reduceRight(cb)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js
index c5c29eb02..78e6d744f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-5.js
@@ -9,10 +9,10 @@ description: >
indices(initialvalue present)
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- return prevVal + curVal;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return prevVal + curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
-assert.sameValue(srcArr.reduceRight(callbackfn, '6'), '654321', 'srcArr.reduceRight(callbackfn,"6")');
+assert.sameValue(srcArr.reduceRight(callbackfn,'6'), '654321', 'srcArr.reduceRight(callbackfn,"6")');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js
index 37cb4705e..1ce24519c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-6.js
@@ -9,13 +9,10 @@ description: >
provided
---*/
-foo.prototype = new Array(0, 1, 2, 3);
+ foo.prototype = new Array(0, 1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
-
-assert.sameValue(f.reduceRight(cb, "4"), "43210", 'f.reduceRight(cb,"4")');
+assert.sameValue(f.reduceRight(cb,"4"), "43210", 'f.reduceRight(cb,"4")');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js
index 813179ec7..27be976b4 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-7.js
@@ -9,13 +9,10 @@ description: >
and initialvalue provided
---*/
-foo.prototype = [1];
+ foo.prototype = [1];
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
-function cb(prevVal, curVal, idx, obj) {
- return prevVal + curVal;
-}
-
-assert.sameValue(f.reduceRight(cb, "4"), "41", 'f.reduceRight(cb,"4")');
+assert.sameValue(f.reduceRight(cb,"4"), "41", 'f.reduceRight(cb,"4")');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js
index a9aa69740..8a9eb8165 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-10-8.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.22-10-8
description: Array.prototype.reduceRight doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ }
+ var srcArr = ['1','2','3','4','5'];
+ srcArr["i"] = 10;
+ srcArr[true] = 11;
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
-}
-var srcArr = ['1', '2', '3', '4', '5'];
-srcArr["i"] = 10;
-srcArr[true] = 11;
-
-srcArr.reduceRight(callbackfn);
+ srcArr.reduceRight(callbackfn);
assert.sameValue(callCnt, 4, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js
index 5a7a0af52..5da45ad9d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-1.js
@@ -9,18 +9,18 @@ description: >
is an own data property
---*/
-var accessed = false;
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
-};
+ var accessed = false;
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+ };
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js
index 035cc1c82..ad204a77b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-10.js
@@ -9,30 +9,30 @@ description: >
is an inherited accessor property
---*/
-var accessed = false;
-var Con = function() {};
+ var accessed = false;
+ var Con = function () { };
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Con.prototype = proto;
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert(Array.prototype.reduceRight.call(child, callbackfn, 11), 'Array.prototype.reduceRight.call(child, callbackfn, 11) !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js
index ffd66953e..dc8d017bd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-11.js
@@ -9,21 +9,21 @@ description: >
is an own accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof obj.length === "undefined";
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof obj.length === "undefined";
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 111), 111, 'Array.prototype.reduceRight.call(obj, callbackfn, 111)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js
index b685810f9..c162760d0 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-12.js
@@ -10,28 +10,25 @@ description: >
property
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof obj.length === "undefined";
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof obj.length === "undefined";
+ }
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 12,
- 1: 13
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 0: 12, 1: 13 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 11), 11, 'Array.prototype.reduceRight.call(obj, callbackfn, 11)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js
index 7cdaf568c..56f37873f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-13.js
@@ -9,25 +9,25 @@ description: >
'length' is inherited accessor property without a get function
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return curVal > 10;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return curVal > 10;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
assert.sameValue(Array.prototype.reduceRight.call(child, callbackfn, 111), 111, 'Array.prototype.reduceRight.call(child, callbackfn, 111)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js
index 75d312923..26f6a9d37 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-14.js
@@ -9,16 +9,13 @@ description: >
'length' property doesn't exist
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
-var accessed = false;
+ var obj = { 0: 11, 1: 12 };
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return curVal > 10;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return curVal > 10;
+ }
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 111), 111, 'Array.prototype.reduceRight.call(obj, callbackfn, 111)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js
index b888b562e..41f7352af 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-17.js
@@ -9,18 +9,18 @@ description: >
implements its own property get method
---*/
-var arg;
-var accessed = false;
+ var arg;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var func = function(a, b) {
- arg = arguments;
- return Array.prototype.reduceRight.call(arguments, callbackfn, 11);
-};
+ var func = function (a, b) {
+ arg = arguments;
+ return Array.prototype.reduceRight.call(arguments, callbackfn, 11);
+ };
assert(func(12, 11), 'func(12, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js
index bc036bf48..89f7a89fa 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-18.js
@@ -9,15 +9,15 @@ description: >
implements its own property get method
---*/
-var accessed = false;
-var str = new String("432");
+ var accessed = false;
+ var str = new String("432");
-function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 3;
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 3;
+ }
-String.prototype[3] = "1";
+ String.prototype[3] = "1";
assert(Array.prototype.reduceRight.call(str, callbackfn, 111), 'Array.prototype.reduceRight.call(str, callbackfn, 111) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js
index f76fdf223..08bdd46df 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-19.js
@@ -9,18 +9,18 @@ description: >
implements its own property get method
---*/
-var accessed = false;
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 12;
-fun[1] = 11;
-fun[2] = 9;
+ var accessed = false;
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 12;
+ fun[1] = 11;
+ fun[2] = 9;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
assert(Array.prototype.reduceRight.call(fun, callbackfn, 11), 'Array.prototype.reduceRight.call(fun, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js
index b2b8335e1..c56d545b4 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-2.js
@@ -9,12 +9,12 @@ description: >
Array
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
assert([12, 11].reduceRight(callbackfn, 11), '[12, 11].reduceRight(callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js
index ef1d83a5d..feff6998d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-3.js
@@ -9,25 +9,23 @@ description: >
is an own data property that overrides an inherited data property
---*/
-var accessed = true;
+ var accessed = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert(Array.prototype.reduceRight.call(child, callbackfn), 'Array.prototype.reduceRight.call(child, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js
index 4335394fa..0a1b81254 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-4.js
@@ -9,16 +9,15 @@ description: >
overrides an inherited data property on an Array
---*/
-var accessed = false;
-var arrProtoLen;
+ var accessed = false;
+ var arrProtoLen;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
-
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
assert([12, 11].reduceRight(callbackfn, 11), '[12, 11].reduceRight(callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js
index 50e35c3b4..3fcf425de 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-5.js
@@ -10,32 +10,32 @@ description: >
property
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert(Array.prototype.reduceRight.call(child, callbackfn), 'Array.prototype.reduceRight.call(child, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js
index d41b9630a..b31b796cb 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-6.js
@@ -9,22 +9,20 @@ description: >
is an inherited data property
---*/
-var accessed = false;
-var proto = {
- length: 2
-};
-var Con = function() {};
-Con.prototype = proto;
+ var accessed = false;
+ var proto = { length: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
-function callbackfn1(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn1(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
assert(Array.prototype.reduceRight.call(child, callbackfn1, 11), 'Array.prototype.reduceRight.call(child, callbackfn1, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js
index 836ed95e1..1400c9e8e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-7.js
@@ -9,23 +9,23 @@ description: >
is an own accessor property
---*/
-var accessed = true;
-var obj = {};
-obj[0] = 12;
-obj[1] = 11;
-obj[2] = 9;
+ var accessed = true;
+ var obj = {};
+ obj[0] = 12;
+ obj[1] = 11;
+ obj[2] = 9;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
assert(Array.prototype.reduceRight.call(obj, callbackfn, 11), 'Array.prototype.reduceRight.call(obj, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js
index f867632c0..85912235a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-8.js
@@ -10,32 +10,30 @@ description: >
property
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert(Array.prototype.reduceRight.call(child, callbackfn, 11), 'Array.prototype.reduceRight.call(child, callbackfn, 11) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js
index d47f6150f..139b4d175 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-2-9.js
@@ -10,34 +10,34 @@ description: >
property
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn1(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
-}
+ function callbackfn1(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-child[0] = 12;
-child[1] = 11;
-child[2] = 9;
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
assert(Array.prototype.reduceRight.call(child, callbackfn1, 111), 'Array.prototype.reduceRight.call(child, callbackfn1, 111) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js
index 7ce837aeb..d309b78ac 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-1.js
@@ -7,16 +7,13 @@ es5id: 15.4.4.22-3-1
description: Array.prototype.reduceRight - value of 'length' is undefined
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: undefined
-};
+ var obj = { 0: 9, length: undefined };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js
index 938371d98..be485e4db 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-10.js
@@ -9,16 +9,13 @@ description: >
is NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: NaN
-};
+ var obj = { 0: 9, length: NaN };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js
index 63f6e5712..c5d9cb5ab 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-11.js
@@ -9,28 +9,22 @@ description: >
containing a positive number
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: "2" };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js
index 3a209ff40..f81ce7b4c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-12.js
@@ -9,28 +9,22 @@ description: >
containing a negative number
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 11, 1: 12, 2: 9, length: "-4294967294" };
-var obj = {
- 0: 11,
- 1: 12,
- 2: 9,
- length: "-4294967294"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert.sameValue(testResult2, false, 'testResult2');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js
index 6fb47ffde..054d4cf94 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-13.js
@@ -9,28 +9,22 @@ description: >
containing a decimal number
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: "2.5" };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2.5"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js
index 8fc2ef112..8f7aeeb38 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-14.js
@@ -9,16 +9,13 @@ description: >
containing -Infinity
---*/
-var accessed2 = false;
+ var accessed2 = false;
-function callbackfn2(prevVal, curVal, idx, obj) {
- accessed2 = true;
-}
+ function callbackfn2(prevVal, curVal, idx, obj) {
+ accessed2 = true;
+ }
-var obj2 = {
- 0: 9,
- length: "-Infinity"
-};
+ var obj2 = { 0: 9, length: "-Infinity" };
assert.sameValue(Array.prototype.reduceRight.call(obj2, callbackfn2, 2), 2, 'Array.prototype.reduceRight.call(obj2, callbackfn2, 2)');
assert.sameValue(accessed2, false, 'accessed2');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js
index dc7937f77..a77e817bd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-15.js
@@ -9,28 +9,22 @@ description: >
containing an exponential number
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: "2E0" };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "2E0"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js
index ac8deb3c9..6d75ccf2e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-16.js
@@ -9,28 +9,22 @@ description: >
containing a hex number
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: "0x0002" };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "0x0002"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js
index 5da8f8d4f..ace356165 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-17.js
@@ -9,28 +9,22 @@ description: >
containing a number with leading zeros
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: "0002.00" };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: "0002.00"
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js
index bd2586f98..1ae0c97f9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-18.js
@@ -9,17 +9,13 @@ description: >
can't convert to a number
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- 1: 8,
- length: "two"
-};
+ var obj = { 0: 9, 1: 8, length: "two" };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 11), 11, 'Array.prototype.reduceRight.call(obj, callbackfn, 11)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js
index 1e2f2e395..4f314ad51 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-19.js
@@ -9,40 +9,39 @@ description: >
has an own toString method
---*/
-var testResult1 = true;
-var testResult2 = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
-
-var toStringAccessed = false;
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- toString: function() {
- toStringAccessed = true;
- return '2';
- }
- }
-};
-
-// objects inherit the default valueOf() method from Object
-// that simply returns itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var toStringAccessed = false;
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
+ }
+ };
+
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js
index 77c0abd1b..80ddaeaa9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-2.js
@@ -9,16 +9,13 @@ description: >
'length' is 0 (length overridden to false(type conversion))
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: false
-};
+ var obj = { 0: 9, length: false };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js
index 5b8cf1cbd..f277c7fa8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-20.js
@@ -9,35 +9,34 @@ description: >
has an own valueOf method
---*/
-var testResult1 = true;
-var testResult2 = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
-
-var valueOfAccessed = false;
-
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
- }
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var valueOfAccessed = false;
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ }
+ };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js
index 31024633a..1f7f478cd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-21.js
@@ -10,40 +10,39 @@ description: >
returns a string
---*/
-var testResult1 = true;
-var testResult2 = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
-
-var toStringAccessed = false;
-var valueOfAccessed = false;
-
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return '2';
- }
- }
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
+ }
+ };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js
index 488f1808f..717f2c2db 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-22.js
@@ -10,31 +10,31 @@ description: >
return primitive values
---*/
-var accessed = false;
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var accessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 11,
- 1: 12,
+ var obj = {
+ 0: 11,
+ 1: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
});
assert(toStringAccessed, 'toStringAccessed !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js
index f9f5fa105..4a3951bcf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-23.js
@@ -10,45 +10,45 @@ description: >
methods
---*/
-var testResult1 = true;
-var testResult2 = false;
-var valueOfAccessed = false;
-var toStringAccessed = false;
-
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
-var Con = function() {};
-Con.prototype = proto;
-var child = new Con();
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
-
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
-
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: child
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ var testResult1 = true;
+ var testResult2 = false;
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
+ var Con = function () { };
+ Con.prototype = proto;
+ var child = new Con();
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: child
+ };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js
index db317c993..33ffe0951 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-24.js
@@ -9,28 +9,22 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 0: 12, 1: 11, 2: 9, length: 2.685 };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2.685
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js
index eb311aa6f..4895baa71 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-25.js
@@ -9,28 +9,27 @@ description: >
non-integer
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+ };
-var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: -4294967294.5
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert.sameValue(testResult2, false, 'testResult2');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js
index b651dc45e..5eb751221 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-3.js
@@ -9,16 +9,13 @@ description: >
is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: 0
-};
+ var obj = { 0: 9, length: 0 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js
index 9b7f07bd4..8317bd611 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-4.js
@@ -9,16 +9,13 @@ description: >
is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: +0
-};
+ var obj = { 0: 9, length: +0 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js
index 9a8919e54..d41f2f0db 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-5.js
@@ -9,16 +9,13 @@ description: >
is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: -0
-};
+ var obj = { 0: 9, length: -0 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js
index 69ed877c2..4caab36e8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-6.js
@@ -9,27 +9,22 @@ description: >
is positive)
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 1: 11, 2: 9, length: 2 };
-var obj = {
- 1: 11,
- 2: 9,
- length: 2
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert(testResult2, 'testResult2 !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js
index a8da6c075..53556d6bd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-7.js
@@ -9,27 +9,22 @@ description: >
is negative)
---*/
-var testResult1 = true;
-var testResult2 = false;
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
-}
+ var obj = { 1: 11, 2: 9, length: -4294967294 };
-var obj = {
- 1: 11,
- 2: 9,
- length: -4294967294
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
assert(testResult1, 'testResult1 !== true');
assert.sameValue(testResult2, false, 'testResult2');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js
index 7ecc600aa..b9a895999 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-3-9.js
@@ -9,16 +9,13 @@ description: >
is -Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
-var obj = {
- 0: 9,
- length: -Infinity
-};
+ var obj = { 0: 9, length: -Infinity };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), 1, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js
index 04017e990..dc3e16591 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-1.js
@@ -9,7 +9,7 @@ description: >
undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight();
+ arr.reduceRight();
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js
index b6a599910..78a88e9b8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-10.js
@@ -9,18 +9,15 @@ description: >
exception was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, undefined);
+ Array.prototype.reduceRight.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js
index 34885bde3..cfb99f9c3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-11.js
@@ -9,22 +9,19 @@ description: >
exception was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, undefined);
+ Array.prototype.reduceRight.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js
index f4e76497f..8f8339475 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-12.js
@@ -7,11 +7,10 @@ es5id: 15.4.4.22-4-12
description: Array.prototype.reduceRight - 'callbackfn' is a function
---*/
-var initialValue = 0;
-
-function callbackfn(accum, val, idx, obj) {
- accum += val;
- return accum;
-}
+ var initialValue = 0;
+ function callbackfn(accum, val, idx, obj) {
+ accum += val;
+ return accum;
+ }
assert.sameValue([11, 9].reduceRight(callbackfn, initialValue), 20, '[11, 9].reduceRight(callbackfn, initialValue)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js
index cdef077c6..38d8e3f06 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-15.js
@@ -9,28 +9,26 @@ description: >
same as passing undefined for callbackfn
---*/
-var obj = {
- 10: 10
-};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, undefined);
+ Array.prototype.reduceRight.call(obj, undefined);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js
index 40ea5d53c..51c148dce 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.reduceRight(foo);
+ arr.reduceRight(foo);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js
index 76b084c2b..129cfc44c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.22-4-3
description: Array.prototype.reduceRight throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight(null);
+ arr.reduceRight(null);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js
index 9f0043f12..d4dc6d1f2 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-4.js
@@ -9,7 +9,7 @@ description: >
boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight(true);
+ arr.reduceRight(true);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js
index e22ed2183..a20e6ccb3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-5.js
@@ -9,7 +9,7 @@ description: >
number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight(5);
+ arr.reduceRight(5);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js
index e6437a1b3..f32324399 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-6.js
@@ -9,7 +9,7 @@ description: >
string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight("abc");
+ arr.reduceRight("abc");
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js
index c6104250d..86a86b8c9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-7.js
@@ -9,7 +9,7 @@ description: >
Object without [[Call]] internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight(new Object());
+ arr.reduceRight(new Object());
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js
index d76239982..2b7468f54 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-8.js
@@ -9,21 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, null);
+ Array.prototype.reduceRight.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js
index 0da73eb44..dac9e41fa 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-4-9.js
@@ -9,25 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, null);
+ Array.prototype.reduceRight.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js
index 562903de4..7aca86981 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-1.js
@@ -9,7 +9,7 @@ description: >
(empty array), no initVal
---*/
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- [].reduceRight(cb);
+ [].reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js
index f70a3062d..ede41e29f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-10.js
@@ -9,21 +9,18 @@ description: >
an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 0;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js
index a0d148aac..627bebe30 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-11.js
@@ -9,25 +9,22 @@ description: >
an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "0";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "0";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js
index 5a8f49096..7115439f2 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-12.js
@@ -9,18 +9,15 @@ description: >
exception was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js
index f3a658dbd..8ff17da58 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-13.js
@@ -9,22 +9,19 @@ description: >
exception was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js
index e2ea6c0a1..4f74f4fb5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-2.js
@@ -10,13 +10,12 @@ description: >
no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js
index 1256ed668..a19e73e2b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js
@@ -10,13 +10,12 @@ description: >
no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js
index ec024658f..31a202f5e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-4.js
@@ -10,13 +10,12 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js
index ddf90e92e..db633c214 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-5.js
@@ -10,13 +10,12 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js
index 76d34aed0..cea6793e0 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-6.js
@@ -10,19 +10,14 @@ description: >
initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js
index bd392b800..6fac3bfd8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-7.js
@@ -10,25 +10,20 @@ description: >
(toString)), no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js
index 93ce902f0..10631cf82 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-8.js
@@ -9,28 +9,27 @@ description: >
(subclassed Array, length overridden with []), no initVal
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [];
-f.length = [];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
+ function cb(){}
assert.throws(TypeError, function() {
- f.reduceRight(cb);
+ f.reduceRight(cb);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js
index 8c9053cdb..ce3fe6844 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-9.js
@@ -9,6 +9,6 @@ description: >
is 0 and 'initialValue' is present
---*/
-var initialValue = 10;
+ var initialValue = 10;
-assert.sameValue([].reduceRight(function() {}, initialValue), initialValue, '[].reduceRight(function () { }, initialValue)');
+assert.sameValue([].reduceRight(function () { }, initialValue), initialValue, '[].reduceRight(function () { }, initialValue)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js
index 76cec3316..cd191ee0e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-1.js
@@ -9,5 +9,5 @@ description: >
and initialValue is present (empty array)
---*/
-function cb() {}
-assert.sameValue([].reduceRight(cb, 1), 1, '[].reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue([].reduceRight(cb,1), 1, '[].reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js
index c50c734da..ca80beabf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-10.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.22-7-10
description: Array.prototype.reduceRight - 'initialValue' is present
---*/
-var str = "initialValue is present";
+ var str = "initialValue is present";
-assert.sameValue([].reduceRight(function() {}, str), str, '[].reduceRight(function () { }, str)');
+assert.sameValue([].reduceRight(function () { }, str), str, '[].reduceRight(function () { }, str)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js
index 466105ad6..c7c2a92a6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-11.js
@@ -7,6 +7,6 @@ es5id: 15.4.4.22-7-11
description: Array.prototype.reduceRight - 'initialValue' is not present
---*/
-var str = "initialValue is not present";
+ var str = "initialValue is not present";
-assert.sameValue([str].reduceRight(function() {}), str, '[str].reduceRight(function () { })');
+assert.sameValue([str].reduceRight(function () { }), str, '[str].reduceRight(function () { })');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js
index 226fe2e53..d6bbe8e4d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-2.js
@@ -10,11 +10,10 @@ description: >
to null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js
index 07b39a3cc..f06d61ae5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-3.js
@@ -10,11 +10,10 @@ description: >
to false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js
index 6006a08c3..5cc4058fe 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-4.js
@@ -10,11 +10,10 @@ description: >
to 0 (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js
index e91ba1627..1a7b538fd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-5.js
@@ -10,11 +10,10 @@ description: >
to '0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js
index 5fda99875..7d7f0356d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js
@@ -10,17 +10,12 @@ description: >
with obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js
index 80819a2b4..a2fdb76eb 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-7.js
@@ -10,23 +10,18 @@ description: >
with obj w/o valueOf (toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js
index d2db08ed9..88fd551cf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-8.js
@@ -10,26 +10,25 @@ description: >
with [])
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [];
-f.length = [];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js
index 9903f299b..b7d1567e2 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-9.js
@@ -10,26 +10,25 @@ description: >
with [0])
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ f.length = [0];
-f.length = [0];
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)');
+ function cb(){}
+assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js
index de85b84e2..2763dde2e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-1.js
@@ -9,22 +9,20 @@ description: >
is 0
---*/
-var accessed = false;
+ var accessed = false;
-var obj = {
- length: 0
-};
+ var obj = { length: 0 };
-Object.defineProperty(obj, "0", {
- get: function() {
- accessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js
index 96e4d9109..c2c0b4e85 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-2.js
@@ -9,23 +9,22 @@ description: >
number of iterations in step 9
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ called++;
+ return prevVal + curVal;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- called++;
- return prevVal + curVal;
-}
+ var arr = [0, 1, 2, 3];
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ arr.length = 2;
+ return 10;
+ },
+ configurable: true
+ });
-var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "4", {
- get: function() {
- arr.length = 2;
- return 10;
- },
- configurable: true
-});
-
-var preVal = arr.reduceRight(callbackfn);
+ var preVal = arr.reduceRight(callbackfn);
assert.sameValue(preVal, 11, 'preVal');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js
index 0c9292f97..cfa839663 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-3.js
@@ -9,37 +9,37 @@ description: >
'kPresent' is true
---*/
-var called = 0;
-var testResult = false;
-var firstCalled = 0;
-var secondCalled = 0;
-
-function callbackfn(prevVal, val, idx, obj) {
- if (called === 0) {
- testResult = (idx === 1);
- }
- called++;
-}
-
-var arr = [, , , ];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- firstCalled++;
- return 9;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "2", {
- get: function() {
- secondCalled++;
- return 11;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ var called = 0;
+ var testResult = false;
+ var firstCalled = 0;
+ var secondCalled = 0;
+
+ function callbackfn(prevVal, val, idx, obj) {
+ if (called === 0) {
+ testResult = (idx === 1);
+ }
+ called++;
+ }
+
+ var arr = [, , , ];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ firstCalled++;
+ return 9;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ secondCalled++;
+ return 11;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
assert.sameValue(firstCalled, 1, 'firstCalled');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js
index cbd57020e..41ea823dc 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-1.js
@@ -9,16 +9,16 @@ description: >
visible here
---*/
-var obj = {};
+ var obj = {};
-function callbackfn(prevVal, curVal, idx, obj) {}
+ function callbackfn(prevVal, curVal, idx, obj) { }
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "accumulator";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "accumulator";
+ return 3;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn), "accumulator", 'Array.prototype.reduceRight.call(obj, callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js
index 8da273e0c..4afeb3bb7 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-ii-2.js
@@ -9,17 +9,14 @@ description: >
visible here
---*/
-var obj = {
- 2: "accumulator",
- 3: "another"
-};
+ var obj = { 2: "accumulator", 3: "another" };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[2];
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 5;
+ },
+ configurable: true
+ });
-assert.notSameValue(Array.prototype.reduceRight.call(obj, function() {}), "accumulator", 'Array.prototype.reduceRight.call(obj, function () { })');
+assert.notSameValue(Array.prototype.reduceRight.call(obj, function () { }), "accumulator", 'Array.prototype.reduceRight.call(obj, function () { })');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js
index 3edc44785..d3421ebb5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-1.js
@@ -9,20 +9,15 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (prevVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (prevVal === 1);
- }
-}
+ var obj = { 0: 0, 1: 1, length: 2 };
-var obj = {
- 0: 0,
- 1: 1,
- length: 2
-};
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js
index d76cbfc02..2f82c1289 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-10.js
@@ -9,23 +9,22 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (curVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (curVal === 2);
- }
-}
+ var arr = [0, 1, , 3];
-var arr = [0, 1, , 3];
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js
index 98aea64ef..62c9245a9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-11.js
@@ -10,33 +10,28 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
-
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "2", {
- get: function() {
- return "20";
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1, 2: 2 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js
index d322bc64d..ee042baae 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-12.js
@@ -10,24 +10,23 @@ description: >
Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
+ Array.prototype[2] = 2;
+ var arr = [0, 1];
-Array.prototype[2] = 2;
-var arr = [0, 1];
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- get: function() {
- return "20";
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js
index f2e27dc4e..0d3c40e0a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-13.js
@@ -10,39 +10,35 @@ description: >
an Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
-
-var proto = {
- 0: 0,
- 1: 1
-};
-
-Object.defineProperty(proto, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "2", {
- get: function() {
- return "20";
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1 };
+
+ Object.defineProperty(proto, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js
index 74613a078..3973a3593 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-14.js
@@ -10,30 +10,29 @@ description: >
an Array
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
-
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-var arr = [0, 1, , ];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "20";
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ var arr = [0, 1, , ];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js
index 4a484444e..5ed456fb1 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-15.js
@@ -9,32 +9,28 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var proto = { 0: 0, 1: 1 };
-var proto = {
- 0: 0,
- 1: 1
-};
+ Object.defineProperty(proto, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js
index 8d473225b..b2cc5cbb2 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-16.js
@@ -9,23 +9,22 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ var arr = [0, 1, , ];
-var arr = [0, 1, , ];
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js
index 00cb06069..754f25206 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-17.js
@@ -9,25 +9,20 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ var obj = { 0: 0, 1: 1, length: 3 };
-var obj = {
- 0: 0,
- 1: 1,
- length: 3
-};
+ Object.defineProperty(obj, "2", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(obj, "2", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js
index 4be07578a..7413e3140 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-18.js
@@ -9,21 +9,20 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ var arr = [0, 1];
-var arr = [0, 1];
+ Object.defineProperty(arr, "2", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(arr, "2", {
- set: function() {},
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js
index 65b0ec395..55df142cb 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-19.js
@@ -10,26 +10,21 @@ description: >
inherited accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ Object.prototype[2] = 2;
-Object.prototype[2] = 2;
+ var obj = { 0: 0, 1: 1, length: 3 };
+ Object.defineProperty(obj, "2", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 0,
- 1: 1,
- length: 3
-};
-Object.defineProperty(obj, "2", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js
index 6b68c4259..e7dfce50c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-2.js
@@ -9,16 +9,15 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var arr = [0, 1, 2];
-var arr = [0, 1, 2];
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js
index f42f77de4..7c0d2b3d5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-20.js
@@ -10,21 +10,20 @@ description: >
inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ Array.prototype[2] = 2;
+ var arr = [0, 1];
+ Object.defineProperty(arr, "2", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[2] = 2;
-var arr = [0, 1];
-Object.defineProperty(arr, "2", {
- set: function() {},
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js
index 234438eb9..c2586e35a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-21.js
@@ -9,30 +9,26 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ var proto = { 0: 0, 1: 1 };
-var proto = {
- 0: 0,
- 1: 1
-};
+ Object.defineProperty(proto, "2", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(proto, "2", {
- set: function() {},
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js
index 801417004..0c3321dce 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-22.js
@@ -9,21 +9,20 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
-}
+ Object.defineProperty(Array.prototype, "2", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "2", {
- set: function() {},
- configurable: true
-});
+ var arr = [0, 1, , ];
-var arr = [0, 1, , ];
-
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js
index a00761e4b..ed00735cb 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-25.js
@@ -10,18 +10,17 @@ description: >
is less than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (prevVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (prevVal === 1);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
-};
-
-func(0, 1);
+ func(0, 1);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js
index 5024b8159..fa3c52c43 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-26.js
@@ -10,18 +10,17 @@ description: >
equals number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
-};
-
-func(0, 1, 2);
+ func(0, 1, 2);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js
index 4b716884f..c6cfe25cd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-27.js
@@ -10,18 +10,17 @@ description: >
is greater than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (prevVal === 3);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (prevVal === 3);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
-};
-
-func(0, 1, 2, 3);
+ func(0, 1, 2, 3);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js
index 296ac59cd..892cfdc56 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-28.js
@@ -9,16 +9,15 @@ description: >
implements its own property get method
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "2");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "2");
- }
-}
+ var str = new String("012");
-var str = new String("012");
-
-Array.prototype.reduceRight.call(str, callbackfn);
+ Array.prototype.reduceRight.call(str, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js
index e7c88ee8f..acb274e17 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-29.js
@@ -9,22 +9,21 @@ description: >
implements its own property get method
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var obj = function (a, b, c) {
+ return a + b + c;
+ };
-var obj = function(a, b, c) {
- return a + b + c;
-};
+ obj[0] = 0;
+ obj[1] = 1;
+ obj[2] = 2;
-obj[0] = 0;
-obj[1] = 1;
-obj[2] = 2;
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js
index 5dae8cade..062f12ba1 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-3.js
@@ -10,28 +10,22 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 2
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[1] = "10";
+ child[2] = "20";
+ child.length = 3;
-var child = new Con();
-child[1] = "10";
-child[2] = "20";
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js
index dd07c30e2..bfebf8515 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-30.js
@@ -9,36 +9,35 @@ description: >
iteration is observed in subsequent iterations on an Array
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1 && prevVal === 2);
- }
-}
-
-var arr = [0];
-var preIterVisible = false;
-
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return "20";
- }
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "2", {
- get: function() {
- preIterVisible = true;
- return 2;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1 && prevVal === 2);
+ }
+ }
+
+ var arr = [0];
+ var preIterVisible = false;
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "20";
+ }
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 2;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js
index adc024dca..8d8168a56 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-31.js
@@ -9,39 +9,35 @@ description: >
iteration is observed subsequetly on an Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2 && curVal === 1);
- }
-}
-
-var obj = {
- 0: 0,
- length: 3
-};
-var preIterVisible = false;
-
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return "20";
- }
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "2", {
- get: function() {
- preIterVisible = true;
- return 2;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2 && curVal === 1);
+ }
+ }
+
+ var obj = { 0: 0, length: 3 };
+ var preIterVisible = false;
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "20";
+ }
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 2;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js
index e4056e11f..49146cd49 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-32.js
@@ -9,26 +9,21 @@ description: >
iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
-}
-
-var obj = {
- 0: 0,
- 1: 1,
- length: 3
-};
-Object.defineProperty(obj, "2", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 0: 0, 1: 1, length: 3 };
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js
index b770c5ccc..53f974e22 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-33.js
@@ -9,23 +9,22 @@ description: >
iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
-}
+ var arr = [0, 1];
-var arr = [0, 1];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js
index 9363a9c3b..2bf4cc00d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-4.js
@@ -9,15 +9,14 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
-
-Array.prototype[2] = "11";
-[0, 1, 2].reduceRight(callbackfn);
+ Array.prototype[2] = "11";
+ [0, 1, 2].reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js
index 1eda02b46..c08e59248 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-5.js
@@ -10,35 +10,34 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "2", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-child[0] = "0";
-child[1] = "1";
-Object.defineProperty(proto, "2", {
- value: "20",
- configurable: true
-});
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "2", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+ child[0] = "0";
+ child[1] = "1";
+ Object.defineProperty(proto, "2", {
+ value: "20",
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js
index 6f8f1eec3..6bd5ab5eb 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-6.js
@@ -9,20 +9,19 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
-
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "2";
- },
- configurable: true
-});
-[0, 1, 2].reduceRight(callbackfn);
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "2";
+ },
+ configurable: true
+ });
+ [0, 1, 2].reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js
index 55a3d6dbd..a955557ec 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-7.js
@@ -9,25 +9,19 @@ description: >
data property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 3
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
-var child = new Con();
-
-Array.prototype.reduceRight.call(child, callbackfn);
+ Array.prototype.reduceRight.call(child, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js
index d7174183c..983566a9c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-8.js
@@ -9,17 +9,16 @@ description: >
data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
-
-Array.prototype[0] = 0;
-Array.prototype[1] = 1;
-Array.prototype[2] = 2;
-[, , , ].reduceRight(callbackfn);
+ Array.prototype[0] = 0;
+ Array.prototype[1] = 1;
+ Array.prototype[2] = 2;
+ [, , ,].reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js
index 648e9485b..e2f7da4b6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-b-iii-1-9.js
@@ -9,26 +9,21 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
-}
+ var obj = { 0: 0, 1: 1, length: 3 };
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 0,
- 1: 1,
- length: 3
-};
-Object.defineProperty(obj, "2", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js
index 8c59328e3..9c1d91d3c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-1.js
@@ -9,10 +9,11 @@ description: >
and initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js
index 3153f84f5..05271d674 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-2.js
@@ -10,12 +10,13 @@ description: >
initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
-arr[9] = 1;
-arr.length = 5;
+ var arr = new Array(10);
+ arr[9] = 1;
+ arr.length = 5;
assert.throws(TypeError, function() {
- arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js
index 06d5460c7..e47a755d5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-3.js
@@ -9,15 +9,16 @@ description: >
assigned values are deleted and initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = [1, 2, 3, 4, 5];
-delete arr[0];
-delete arr[1];
-delete arr[2];
-delete arr[3];
-delete arr[4];
+ var arr = [1,2,3,4,5];
+ delete arr[0];
+ delete arr[1];
+ delete arr[2];
+ delete arr[3];
+ delete arr[4];
assert.throws(TypeError, function() {
- arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js
index 4dc298096..18296c2bf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-4.js
@@ -9,11 +9,11 @@ description: >
own properties but prototype contains a single property
---*/
-var arr = [, , , ];
+ var arr = [, , , ];
-try {
- Array.prototype[1] = "prototype";
- arr.reduceRight(function() {});
-} finally {
- delete Array.prototype[1];
-}
+ try {
+ Array.prototype[1] = "prototype";
+ arr.reduceRight(function () { });
+ } finally {
+ delete Array.prototype[1];
+ }
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js
index 224ff36c3..b5dd24963 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-5.js
@@ -9,18 +9,18 @@ description: >
visible when an exception occurs
---*/
-var obj = {};
+ var obj = { };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js
index 3dab92c10..476886a76 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-6.js
@@ -9,22 +9,22 @@ description: >
visible when an exception occurs
---*/
-var obj = {};
+ var obj = {};
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js
index fade921f9..2fabc8fd6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-7.js
@@ -9,15 +9,15 @@ description: >
exception was thrown by step 2
---*/
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js
index d0e875976..52c2ed7a6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-8-c-8.js
@@ -9,19 +9,19 @@ description: >
exception was thrown by step 3
---*/
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, function() {});
+ Array.prototype.reduceRight.call(obj, function () { });
});
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js
index ef9f26791..8132b414c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-1.js
@@ -11,12 +11,12 @@ description: >
length
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- arr[5] = 6;
- arr[2] = 3;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ arr[5] = 6;
+ arr[2] = 3;
+ return prevVal + curVal;
+ }
-var arr = ['1', 2, , 4, '5'];
+ var arr = ['1', 2, , 4, '5'];
assert.sameValue(arr.reduceRight(callbackfn), "54321", 'arr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js
index 4fa783dfe..05fa751f0 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-2.js
@@ -9,13 +9,13 @@ description: >
array after it is called
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- arr[3] = -2;
- arr[0] = -1;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ arr[3] = -2;
+ arr[0] = -1;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.reduceRight(callbackfn), 13, 'arr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js
index 0455ef32a..eb48426ea 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js
@@ -9,14 +9,14 @@ description: >
elements in array after the call
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- delete arr[1];
- delete arr[4];
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ delete arr[1];
+ delete arr[4];
+ return prevVal + curVal;
+ }
-var arr = ['1', 2, 3, 4, 5];
+ var arr = ['1',2,3,4,5];
// two elements deleted
assert.sameValue(arr.reduceRight(callbackfn), "121", 'arr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js
index d3fa9884c..0c00cf9c9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-4.js
@@ -9,12 +9,12 @@ description: >
elements when Array.length is decreased
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- arr.length = 2;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ arr.length = 2;
+ return prevVal + curVal;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.reduceRight(callbackfn), 12, 'arr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js
index a11242c5d..8cbf9edee 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-5.js
@@ -9,15 +9,14 @@ description: >
one element
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return 2;
+ }
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
- return 2;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.reduceRight(callbackfn), 1, 'arr.reduceRight(callbackfn)');
assert.sameValue(callCnt, 0, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js
index 24f658690..ca9493b31 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-6.js
@@ -9,16 +9,16 @@ description: >
the call when same index is also present in prototype
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- delete arr[1];
- delete arr[2];
- return prevVal + curVal;
-}
-Array.prototype[2] = 6;
-var arr = ['1', 2, 3, 4, 5];
-var res = arr.reduceRight(callbackfn);
-delete Array.prototype[2];
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ delete arr[1];
+ delete arr[2];
+ return prevVal + curVal;
+ }
+ Array.prototype[2] = 6;
+ var arr = ['1',2,3,4,5];
+ var res = arr.reduceRight(callbackfn);
+ delete Array.prototype[2];
//one element deleted
assert.sameValue(res, "151", 'res');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js
index b76b74b65..6adeffef5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-7.js
@@ -9,13 +9,13 @@ description: >
deleted during the call
---*/
-function callbackfn(prevVal, curVal, idx, obj) {
- delete o.arr;
- return prevVal + curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ delete o.arr;
+ return prevVal + curVal;
+ }
-var o = new Object();
-o.arr = ['1', 2, 3, 4, 5];
+ var o = new Object();
+ o.arr = ['1', 2, 3, 4, 5];
assert.sameValue(o.arr.reduceRight(callbackfn), "141", 'o.arr.reduceRight(callbackfn)');
assert.sameValue(o.hasOwnProperty("arr"), false, 'o.hasOwnProperty("arr")');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js
index a2ef4d7fe..9968f8929 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-8.js
@@ -9,24 +9,21 @@ description: >
is 0
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn() {
+ accessed = true;
+ }
-function callbackfn() {
- accessed = true;
-}
+ var obj = { length: 0 };
-var obj = {
- length: 0
-};
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "5", {
- get: function() {
- accessed = true;
- return 10;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, function() {}, "initialValue");
+ Array.prototype.reduceRight.call(obj, function () { }, "initialValue");
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js
index ac47f378a..f5fc22ab3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-9.js
@@ -9,20 +9,19 @@ description: >
number of iterations
---*/
-var called = 0;
+ var called = 0;
+ function callbackfn(preVal, val, idx, obj) {
+ called++;
+ }
-function callbackfn(preVal, val, idx, obj) {
- called++;
-}
+ var arr = [0, 1, 2, 3];
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ arr.length = 2;
+ },
+ configurable: true
+ });
-var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "4", {
- get: function() {
- arr.length = 2;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert.sameValue(called, 3, 'called');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js
index b7336d05e..9277ef37d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-1.js
@@ -9,10 +9,11 @@ description: >
empty and initialValue is not present
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
-var arr = new Array(10);
+ var arr = new Array(10);
-assert.sameValue(arr.reduceRight(callbackfn, 5), 5, 'arr.reduceRight(callbackfn,5)');
+assert.sameValue(arr.reduceRight(callbackfn,5), 5, 'arr.reduceRight(callbackfn,5)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js
index 1dd6fb9fe..a92bf8dcc 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-10.js
@@ -10,31 +10,28 @@ description: >
Array-like Object
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(preVal, val, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(preVal, val, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: 2,
- length: 20
-};
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "5", {
- get: function() {
- delete Object.prototype[3];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete Object.prototype[3];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[3] = 1;
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Object.prototype[3] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js
index e364fbbb7..bd1bcb4f3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-11.js
@@ -9,27 +9,27 @@ description: >
step 8 causes deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [0, , , ];
-Object.defineProperty(arr, "3", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ var arr = [0, , , ];
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduceRight(callbackfn);
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js
index a6aed7624..9d1eca645 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-12.js
@@ -10,29 +10,25 @@ description: >
on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 0,
- 1: 111,
- length: 10
-};
+ var obj = { 0: 0, 1: 111, length: 10 };
-Object.defineProperty(obj, "4", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "4", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Object.prototype[1] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js
index 470c9420a..fe522f071 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-13.js
@@ -10,24 +10,24 @@ description: >
on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
-var arr = [0, 111];
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
-Object.defineProperty(arr, "2", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduceRight(callbackfn);
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js
index 8307a9768..16924c99c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-14.js
@@ -9,27 +9,27 @@ description: >
causes deleted index property not to be visited
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var arr = [0, 1, 2, 3];
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js
index 97695a950..456fc605b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-15.js
@@ -10,30 +10,30 @@ description: >
visited
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "prototype") {
- testResult = true;
- }
-}
-var arr = [0, 1, 2, 3];
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js
index 71def64c7..f23e5ecf0 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-16.js
@@ -10,31 +10,31 @@ description: >
flags: [noStrict]
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "unconfigurable") {
- testResult = true;
- }
-}
-
-var arr = [0, 1, 2, 3];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
-
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js
index d21d758ac..d74fd82f5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-17.js
@@ -9,31 +9,29 @@ description: >
visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0 && curVal === 0) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0 && curVal === 0) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "1", {
- get: function() {
- Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
- });
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
+ return 1;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js
index 89ed61d4e..d6ab2aac6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-18.js
@@ -9,29 +9,29 @@ description: >
visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js
index e31e3f370..714b8ecd3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-19.js
@@ -9,31 +9,29 @@ description: >
visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 6
-};
+ var obj = { length: 6 };
-Object.defineProperty(obj, "2", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js
index 11d7140d9..423ae546a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-2.js
@@ -9,24 +9,24 @@ description: >
visible here
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "2") {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "2") {
+ testResult = true;
+ }
+ }
-var obj = {};
+ var obj = {};
-Object.defineProperty(obj, "length", {
- get: function() {
- obj[2] = "2";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "2";
+ return 3;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js
index 47586d76f..b993b17f5 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-20.js
@@ -9,29 +9,29 @@ description: >
visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js
index 13f3eeaa6..0b5b53ccf 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-21.js
@@ -9,37 +9,34 @@ description: >
index property not to be visited on an Array-like object
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var obj = {
- 0: 10,
- length: 10
-};
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "5", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 0: 10, length: 10 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js
index 8c57a1bd2..d0bffcff6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-22.js
@@ -9,34 +9,34 @@ description: >
index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var arr = [1, 2, 4];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "2", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [1, 2, 4];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js
index 52046431c..611310635 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-23.js
@@ -10,31 +10,28 @@ description: >
Object
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: 2,
- length: 20
-};
+ var obj = { 2: 2, length: 20 };
-Object.defineProperty(obj, "5", {
- get: function() {
- delete Object.prototype[3];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete Object.prototype[3];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[3] = 1;
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Object.prototype[3] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js
index 9248519f9..8f2c45520 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-24.js
@@ -9,27 +9,27 @@ description: >
causes deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
-var arr = [0, , , ];
-Object.defineProperty(arr, "3", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
+ var arr = [0, , , ];
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduceRight(callbackfn, "initialValue");
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js
index bbfac7348..78d46ed7b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-25.js
@@ -10,30 +10,25 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 0,
- 1: 111,
- 4: 10,
- length: 10
-};
+ var obj = { 0: 0, 1: 111, 4: 10, length: 10 };
-Object.defineProperty(obj, "4", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "4", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Object.prototype[1] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js
index 6b7362927..7b0e441b3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-26.js
@@ -9,24 +9,24 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
-var arr = [0, 111];
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
-Object.defineProperty(arr, "2", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-arr.reduceRight(callbackfn, "initialValue");
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js
index 01b7f09b9..45aa57a16 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-27.js
@@ -9,27 +9,27 @@ description: >
deleted index property not to be visited
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var arr = [0, 1, 2, 3];
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js
index a039a64b7..31ab61068 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-28.js
@@ -9,30 +9,30 @@ description: >
prototype property causes prototype index property to be visited
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "prototype") {
- testResult = true;
- }
-}
-var arr = [0, 1, 2, 3];
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2, 3];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js
index b5cd3bd28..b30c7d0b6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-29.js
@@ -10,31 +10,31 @@ description: >
flags: [noStrict]
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "unconfigurable") {
- testResult = true;
- }
-}
-
-var arr = [0, 1, 2, 3];
-
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
-
-Object.defineProperty(arr, "3", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js
index c9bf72fcb..3e26f8b98 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-3.js
@@ -9,30 +9,27 @@ description: >
visible here
---*/
-var accessed = false;
-var testResult = true;
+ var accessed = false;
+ var testResult = true;
-function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
-var obj = {
- 2: "2",
- 3: 10
-};
+ var obj = { 2: "2", 3: 10 };
-Object.defineProperty(obj, "length", {
- get: function() {
- delete obj[2];
- return 5;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 5;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(accessed, 'accessed !== true');
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js
index de1e7e50e..e8038a797 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-4.js
@@ -9,31 +9,29 @@ description: >
step 8 can be visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 0 && curVal === 0) {
- testResult = true;
- }
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 0 && curVal === 0) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 2
-};
+ var obj = { length: 2 };
-Object.defineProperty(obj, "1", {
- get: function() {
- Object.defineProperty(obj, "0", {
- get: function() {
- return 0;
- },
- configurable: true
- });
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
+ return 1;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js
index be881241b..4c0df9703 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-5.js
@@ -9,29 +9,29 @@ description: >
step 8 can be visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js
index 4c4616663..7149dad93 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-6.js
@@ -9,31 +9,29 @@ description: >
step 8 visited on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
-var obj = {
- length: 6
-};
+ var obj = { length: 6 };
-Object.defineProperty(obj, "2", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype.reduceRight.call(obj, callbackfn);
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js
index 1eea9497c..b38b4cb50 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-7.js
@@ -9,29 +9,29 @@ description: >
step 8 visited on an Array
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
-}
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
-arr.reduceRight(callbackfn);
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js
index f71e3926e..6e5c2a567 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-8.js
@@ -10,37 +10,34 @@ description: >
object
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(preVal, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var obj = {
- 0: 10,
- length: 10
-};
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "5", {
- get: function() {
- delete obj[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn);
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(preVal, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 0: 10, length: 10 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js
index 215cab2ef..8cc465606 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-b-9.js
@@ -9,34 +9,34 @@ description: >
causes deleted index property not to be visited on an Array
---*/
-var accessed = false;
-var testResult = true;
-
-function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
-}
-
-var arr = [0];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "2", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn);
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [0];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js
index 825a40814..fdce8cb0d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-1.js
@@ -9,16 +9,15 @@ description: >
never been assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return curVal;
+ }
-function callbackfn(prevVal, curVal, idx, obj)
-{
- callCnt++;
- return curVal;
-}
-
-var arr = new Array(10);
-arr[0] = arr[1] = undefined; //explicitly assigning a value
+ var arr = new Array(10);
+ arr[0] = arr[1] = undefined; //explicitly assigning a value
assert.sameValue(arr.reduceRight(callbackfn), undefined, 'arr.reduceRight(callbackfn)');
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js
index 351f363ff..da0debdf9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-1.js
@@ -9,20 +9,14 @@ description: >
property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (curVal === 0);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (curVal === 0);
- }
-}
-
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- length: 2
-};
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ var obj = { 0: 0, 1: 1, 2: 2, length: 2 };
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js
index 2c3a2f1e7..d4cf4da37 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-10.js
@@ -9,23 +9,22 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js
index 8d72dd51d..1cbecd5ed 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-11.js
@@ -10,33 +10,28 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
-
-var proto = {
- 0: 0,
- 1: 11,
- 2: 2
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return "1";
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
+
+ var proto = { 0: 0, 1: 11, 2: 2 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js
index 61fb0309a..e7a9e708f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-12.js
@@ -10,24 +10,23 @@ description: >
Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
+ Array.prototype[1] = 11;
+ var arr = [0, ,2];
-Array.prototype[1] = 11;
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return "1";
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js
index f66c4bf60..d9cbbc10b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-13.js
@@ -10,39 +10,35 @@ description: >
an Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
-
-var proto = {
- 0: 0,
- 2: 2
-};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 3;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return "1";
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
+
+ var proto = { 0: 0, 2: 2};
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js
index 25f63b507..e0df7ceb0 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-14.js
@@ -10,29 +10,28 @@ description: >
an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
+ var arr = [0, ,2];
-var arr = [0, , 2];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- return "1";
- },
- configurable: true
-});
-arr.reduceRight(callbackfn, "initialValue");
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js
index 270f2ed4b..f8684e9e8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-15.js
@@ -9,32 +9,28 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var proto = { 0: 0, 2: 2 };
-var proto = {
- 0: 0,
- 2: 2
-};
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(proto, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js
index 78cdc1a28..0f70fe617 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-16.js
@@ -9,23 +9,22 @@ description: >
accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
+ var arr = [0, , 2];
-var arr = [0, , 2];
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js
index 7f9c3c073..04d28b556 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-17.js
@@ -9,25 +9,20 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ var obj = { 0: 0, 2: 2, length: 3 };
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js
index 21a4bf39d..ffd33eaac 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-18.js
@@ -9,21 +9,20 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- set: function() {},
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js
index 82ab638bd..ca309ae00 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-19.js
@@ -10,26 +10,21 @@ description: >
inherited accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ Object.prototype[1] = 1;
-Object.prototype[1] = 1;
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js
index c7168a194..f608df609 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-2.js
@@ -9,15 +9,14 @@ description: >
property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var arr = [0, 1, 2];
-arr.reduceRight(callbackfn, "initialValue");
+ var arr = [0, 1, 2];
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js
index 0f39cd442..266cafd1a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-20.js
@@ -10,21 +10,20 @@ description: >
inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ Array.prototype[1] = 1;
+ var arr = [0, ,2];
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[1] = 1;
-var arr = [0, , 2];
-Object.defineProperty(arr, "1", {
- set: function() {},
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js
index f5dda1c86..1e7b5fd1a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-21.js
@@ -9,30 +9,26 @@ description: >
accessor property without a get function on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ var proto = { 0: 0, 2: 2 };
-var proto = {
- 0: 0,
- 2: 2
-};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var Con = function () { };
+ Con.prototype = proto;
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js
index 365b543a5..dedd4b643 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-22.js
@@ -9,21 +9,20 @@ description: >
accessor property without a get function on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
-}
+ Object.defineProperty(Array.prototype, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- set: function() {},
- configurable: true
-});
+ var arr = [0, , 2];
-var arr = [0, , 2];
-
-arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js
index 9c177f936..81d2d0e04 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-25.js
@@ -10,18 +10,17 @@ description: >
is less than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
-};
-
-func(0, 1);
+ func(0, 1);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js
index 79984ddfe..e2518afe3 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-26.js
@@ -10,18 +10,17 @@ description: >
equals number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (curVal === 2);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (curVal === 2);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
-};
-
-func(0, 1, 2);
+ func(0, 1, 2);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js
index 080ad10a2..677bcd3da 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-27.js
@@ -10,18 +10,17 @@ description: >
is greater than number of parameters)
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 3) {
+ testResult = (curVal === 3);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 3) {
- testResult = (curVal === 3);
- }
-}
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+ };
-var func = function(a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
-};
-
-func(0, 1, 2, 3);
+ func(0, 1, 2, 3);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js
index 388685e91..83976643c 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-28.js
@@ -9,15 +9,14 @@ description: >
implements its own property get method
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
-
-var str = new String("012");
-Array.prototype.reduceRight.call(str, callbackfn, "initialValue");
+ var str = new String("012");
+ Array.prototype.reduceRight.call(str, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js
index 2cc8148fd..b69e0332b 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-29.js
@@ -9,23 +9,22 @@ description: >
implements its own property get method
---*/
-var testResult = false;
-var initialValue = 0;
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var obj = function (a, b, c) {
+ return a + b + c;
+ };
+ obj[0] = 0;
+ obj[1] = 1;
+ obj[2] = 2;
+ obj[3] = 3;
-var obj = function(a, b, c) {
- return a + b + c;
-};
-obj[0] = 0;
-obj[1] = 1;
-obj[2] = 2;
-obj[3] = 3;
-
-Array.prototype.reduceRight.call(obj, callbackfn, initialValue);
+ Array.prototype.reduceRight.call(obj, callbackfn, initialValue);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js
index 98c28ad1e..50fa72704 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-3.js
@@ -10,28 +10,22 @@ description: >
Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
-}
+ var proto = { 0: 10, 1: 11, 2: 12, length: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 10,
- 1: 11,
- 2: 12,
- length: 2
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child[1] = "1";
+ child[2] = "2";
+ child.length = 3;
-var child = new Con();
-child[1] = "1";
-child[2] = "2";
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js
index 234bf191a..c3c66cd5f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-30.js
@@ -9,36 +9,35 @@ description: >
previous iterations is observed on an Array
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var arr = [, , ];
-var preIterVisible = false;
-
-Object.defineProperty(arr, "2", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return "11";
- }
- },
- configurable: true
-});
-
-arr.reduceRight(callbackfn, "initialValue");
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var arr = [, ,];
+ var preIterVisible = false;
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "11";
+ }
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js
index c560a641e..a25b15397 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-31.js
@@ -9,38 +9,35 @@ description: >
previous iterations is observed on an Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-var obj = {
- length: 3
-};
-var preIterVisible = false;
-
-Object.defineProperty(obj, "2", {
- get: function() {
- preIterVisible = true;
- return 0;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "1", {
- get: function() {
- if (preIterVisible) {
- return 1;
- } else {
- return "11";
- }
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var obj = { length: 3 };
+ var preIterVisible = false;
+
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "11";
+ }
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js
index 57da7683a..a0225a882 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-32.js
@@ -9,27 +9,22 @@ description: >
getter terminate iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
-}
-
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js
index 257325e49..643f4ee4a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-33.js
@@ -9,25 +9,24 @@ description: >
getter terminate iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
-}
+ var arr = [0, , 2];
-var arr = [0, , 2];
-
-Object.defineProperty(arr, "1", {
- get: function() {
- throw new Test262Error("unhandle exception happened in getter");
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new Test262Error("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- arr.reduceRight(callbackfn, "initialValue");
+ arr.reduceRight(callbackfn, "initialValue");
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js
index a5145b80d..a5226d8d8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-4.js
@@ -9,15 +9,14 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Array.prototype[1] = "11";
-[0, 1, 2].reduceRight(callbackfn, "initialValue");
+ Array.prototype[1] = "11";
+ [0, 1, 2].reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js
index 6feb43a1b..fe417547f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-5.js
@@ -10,34 +10,33 @@ description: >
Array-like object
---*/
-var testResult = false;
-
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (curVal === "0");
- }
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 10;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: "0",
- configurable: true
-});
-child[1] = "1";
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (curVal === "0");
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: "0",
+ configurable: true
+ });
+ child[1] = "1";
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js
index 5b47467c3..d3715f273 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-6.js
@@ -9,20 +9,19 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return "11";
- },
- configurable: true
-});
-[0, 1, 2].reduceRight(callbackfn, "initialValue");
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return "11";
+ },
+ configurable: true
+ });
+ [0, 1, 2].reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js
index e5a8ebfc3..31f37fcee 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-7.js
@@ -9,25 +9,20 @@ description: >
data property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var proto = { 0: 0, 1: 1, 2: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
-var proto = {
- 0: 0,
- 1: 1,
- 2: 2
-};
-var Con = function() {};
-Con.prototype = proto;
+ var child = new Con();
+ child.length = 3;
-var child = new Con();
-child.length = 3;
-
-Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js
index ad73acacb..754987649 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-8.js
@@ -9,17 +9,16 @@ description: >
data property on an Array
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
-
-Array.prototype[0] = 0;
-Array.prototype[1] = 1;
-Array.prototype[2] = 2;
-[, , , ].reduceRight(callbackfn, "initialValue");
+ Array.prototype[0] = 0;
+ Array.prototype[1] = 1;
+ Array.prototype[2] = 2;
+ [, , , ].reduceRight(callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js
index d512dd5da..e26ebcc16 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-i-9.js
@@ -9,26 +9,21 @@ description: >
accessor property on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
-}
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 0,
- 2: 2,
- length: 3
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- return 1;
- },
- configurable: true
-});
-
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js
index 50b5043be..ef650ba62 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js
@@ -9,14 +9,14 @@ description: >
parameters (initialvalue not passed)
---*/
-function callbackfn(prevVal, curVal, idx, obj)
-{
- if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal)
- return curVal;
- else
- return false;
-}
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ if(idx+1 < obj.length && obj[idx] === curVal && obj[idx+1] === prevVal)
+ return curVal;
+ else
+ return false;
+ }
-var arr = [0, 1, true, null, new Object(), "five"];
+ var arr = [0,1,true,null,new Object(),"five"];
assert.sameValue(arr.reduceRight(callbackfn), 0, 'arr.reduceRight(callbackfn)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js
index 1953c9a37..ef2c33485 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-10.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(prevVal) {
- called++;
- return prevVal;
-}
+ function callbackfn(prevVal) {
+ called++;
+ return prevVal;
+ }
assert.sameValue([11, 12].reduceRight(callbackfn, 100), 100, '[11, 12].reduceRight(callbackfn, 100)');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js
index d6e3cfd1d..50fe7d7aa 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-11.js
@@ -9,14 +9,14 @@ description: >
parameter
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal) {
- if (prevVal === 100) {
- testResult = true;
- }
- return curVal > 10;
-}
+ function callbackfn(prevVal, curVal) {
+ if (prevVal === 100) {
+ testResult = true;
+ }
+ return curVal > 10;
+ }
assert.sameValue([11].reduceRight(callbackfn, 100), true, '[11].reduceRight(callbackfn, 100)');
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js
index 5d7a7b572..c29286b57 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-12.js
@@ -9,16 +9,16 @@ description: >
parameter
---*/
-var testResult = false;
-var arr = [11, 12, 13];
-var initVal = 6.99;
+ var testResult = false;
+ var arr = [11, 12, 13];
+ var initVal = 6.99;
-function callbackfn(prevVal, curVal, idx) {
- if (idx === 2) {
- testResult = (prevVal === initVal);
- }
- return curVal > 10 && arguments[3][idx] === curVal;
-}
+ function callbackfn(prevVal, curVal, idx) {
+ if (idx === 2) {
+ testResult = (prevVal === initVal);
+ }
+ return curVal > 10 && arguments[3][idx] === curVal;
+ }
assert.sameValue(arr.reduceRight(callbackfn, initVal), true, 'arr.reduceRight(callbackfn, initVal)');
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js
index 6fc2965d5..39325da4e 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-13.js
@@ -9,16 +9,16 @@ description: >
parameter
---*/
-var arr = [11, 12, 13];
-var initVal = 6.99;
-var testResult = false;
+ var arr = [11, 12, 13];
+ var initVal = 6.99;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (prevVal === initVal);
- }
- return curVal > 10 && obj[idx] === curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (prevVal === initVal);
+ }
+ return curVal > 10 && obj[idx] === curVal;
+ }
assert.sameValue(arr.reduceRight(callbackfn, initVal), true, 'arr.reduceRight(callbackfn, initVal)');
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js
index 07437dba5..200649494 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-14.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.22-9-c-ii-14
description: Array.prototype.reduceRight - callbackfn uses arguments
---*/
-function callbackfn() {
- return arguments[0] === 100 && arguments[3][arguments[2]] === arguments[1];
-}
+ function callbackfn() {
+ return arguments[0] === 100 && arguments[3][arguments[2]] === arguments[1];
+ }
assert.sameValue([11].reduceRight(callbackfn, 100), true, '[11].reduceRight(callbackfn, 100)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js
index 401a680ec..101a63d5f 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-16.js
@@ -9,20 +9,15 @@ description: >
called on an Array-like object
---*/
-var testResult = false;
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (prevVal === 8 || curVal === 8) {
- testResult = true;
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (prevVal === 8 || curVal === 8) {
+ testResult = true;
+ }
+ }
-var obj = {
- 0: 11,
- 10: 12,
- non_index_property: 8,
- length: 20
-};
-Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 };
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
assert.sameValue(testResult, false, 'testResult');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js
index b2823532e..0b8e5be99 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js
@@ -9,19 +9,19 @@ description: >
iteration is the result of previous iteration on an Array
---*/
-var arr = [11, 12, 13];
-var testResult = true;
-var initVal = 6.99;
-var preResult = initVal;
+ var arr = [11, 12, 13];
+ var testResult = true;
+ var initVal = 6.99;
+ var preResult = initVal;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (prevVal !== preResult) {
- testResult = false;
- }
- preResult = curVal;
- return curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (prevVal !== preResult) {
+ testResult = false;
+ }
+ preResult = curVal;
+ return curVal;
+ }
-arr.reduceRight(callbackfn, initVal);
+ arr.reduceRight(callbackfn, initVal);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js
index 28d86867b..7e7098d40 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js
@@ -10,17 +10,17 @@ description: >
Array
---*/
-var arr = [11, 12];
-var testResult = false;
-var initVal = 6.99;
+ var arr = [11, 12];
+ var testResult = false;
+ var initVal = 6.99;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === initVal);
- }
- return curVal;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === initVal);
+ }
+ return curVal;
+ }
-arr.reduceRight(callbackfn, initVal);
+ arr.reduceRight(callbackfn, initVal);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js
index 991b82cf0..194a32917 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-19.js
@@ -10,15 +10,15 @@ description: >
undefined when 'initialValue' is not present on an Array
---*/
-var arr = [11, 12, 13];
-var testResult = false;
+ var arr = [11, 12, 13];
+ var testResult = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 13);
- }
- return curVal;
-}
-arr.reduceRight(callbackfn);
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 13);
+ }
+ return curVal;
+ }
+ arr.reduceRight(callbackfn);
assert(testResult, 'testResult !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js
index 238b1e2a3..7324a06a8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js
@@ -9,17 +9,17 @@ description: >
parameters (initialvalue passed)
---*/
-var bParCorrect = false;
-var arr = [0, 1, true, null, new Object(), "five"];
-var initialValue = 5.5;
+ var bParCorrect = false;
+ var arr = [0, 1, true, null, new Object(), "five"];
+ var initialValue = 5.5;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === obj.length - 1 && obj[idx] === curVal && prevVal === initialValue)
- return curVal;
- else if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal)
- return curVal;
- else
- return false;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === obj.length - 1 && obj[idx] === curVal && prevVal === initialValue)
+ return curVal;
+ else if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal)
+ return curVal;
+ else
+ return false;
+ }
assert.sameValue(arr.reduceRight(callbackfn, initialValue), 0, 'arr.reduceRight(callbackfn, initialValue)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js
index 09cf7e099..f4b5470c6 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-20.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.22-9-c-ii-20
description: Array.prototype.reduceRight - undefined can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof prevVal === "undefined";
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof prevVal === "undefined";
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, undefined), true, 'Array.prototype.reduceRight.call(obj, callbackfn, undefined)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js
index 83f18c38c..7f10e3b78 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-21.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.22-9-c-ii-21
description: Array.prototype.reduceRight - null can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === null;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === null;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, null), true, 'Array.prototype.reduceRight.call(obj, callbackfn, null)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js
index e130868f0..10b20d942 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-22.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === false;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === false;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, false), true, 'Array.prototype.reduceRight.call(obj, callbackfn, false)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js
index dc7dba028..57cb524bd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-23.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === 12;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === 12;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 12), true, 'Array.prototype.reduceRight.call(obj, callbackfn, 12)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js
index 768eb6a3d..2326939fd 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-24.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === "hello_";
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === "hello_";
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, "hello_"), true, 'Array.prototype.reduceRight.call(obj, callbackfn, "hello_")');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js
index 7d37c5f2a..4de1b221a 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-25.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objFunction = function() {};
+ var accessed = false;
+ var objFunction = function () { };
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objFunction;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objFunction;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objFunction), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objFunction)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js
index e95896266..485f17e10 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-26.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objArray = [];
+ var accessed = false;
+ var objArray = [];
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objArray;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objArray;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objArray), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objArray)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js
index b5f187df0..3414ccbc9 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-27.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objString = new String();
+ var accessed = false;
+ var objString = new String();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objString;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objString;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objString), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objString)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js
index e8f4b8bc0..541ff7834 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-28.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objBoolean = new Boolean();
+ var accessed = false;
+ var objBoolean = new Boolean();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objBoolean;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objBoolean;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objBoolean), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objBoolean)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js
index 7194c1789..852073958 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-29.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objNumber = new Number();
+ var accessed = false;
+ var objNumber = new Number();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objNumber;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objNumber;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objNumber), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objNumber)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js
index 86a77aa36..7a53ea562 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-3.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.22-9-c-ii-3
description: Array.prototype.reduceRight - callbackfn takes 4 arguments
---*/
-var bCalled = false;
+ var bCalled = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ bCalled = true;
+ if(prevVal === true && arguments.length === 4)
+ return true;
+ else
+ return false;
+ }
+ var arr = [0,1,2,3,4,5,6,7,8,9];
-function callbackfn(prevVal, curVal, idx, obj)
-{
- bCalled = true;
- if (prevVal === true && arguments.length === 4)
- return true;
- else
- return false;
-}
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-
-assert.sameValue(arr.reduceRight(callbackfn, true), true, 'arr.reduceRight(callbackfn,true)');
+assert.sameValue(arr.reduceRight(callbackfn,true), true, 'arr.reduceRight(callbackfn,true)');
assert.sameValue(bCalled, true, 'bCalled');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js
index 0df779018..c15160423 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-30.js
@@ -9,17 +9,13 @@ description: >
accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === Math;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === Math;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, Math), true, 'Array.prototype.reduceRight.call(obj, callbackfn, Math)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js
index 092e60ecf..c58777b28 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-31.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objDate = new Date();
+ var accessed = false;
+ var objDate = new Date();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objDate;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objDate;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objDate), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objDate)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js
index 921bc654d..08e8e4232 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-32.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objRegExp = new RegExp();
+ var accessed = false;
+ var objRegExp = new RegExp();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objRegExp;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objRegExp;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objRegExp), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objRegExp)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js
index 37a2bd4a6..97419e156 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-33.js
@@ -7,17 +7,13 @@ es5id: 15.4.4.22-9-c-ii-33
description: Array.prototype.reduceRight - the JSON can be used as accumulator
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === JSON;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === JSON;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, JSON), true, 'Array.prototype.reduceRight.call(obj, callbackfn, JSON)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js
index 72fcc0cc5..f384ce910 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-34.js
@@ -9,18 +9,14 @@ description: >
accumulator
---*/
-var accessed = false;
-var objError = new RangeError();
+ var accessed = false;
+ var objError = new RangeError();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objError;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objError;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, objError), true, 'Array.prototype.reduceRight.call(obj, callbackfn, objError)');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js
index db05c37e0..11d7428b7 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-35.js
@@ -9,22 +9,19 @@ description: >
accumulator
---*/
-var accessed = false;
-var arg;
+ var accessed = false;
+ var arg;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === arg;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === arg;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
-(function fun() {
- arg = arguments;
-}(10, 11, 12, 13));
+ (function fun() {
+ arg = arguments;
+ }(10, 11, 12, 13));
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, arg), true, 'Array.prototype.reduceRight.call(obj, callbackfn, arg)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js
index 23314a32b..e8b37ab73 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-37.js
@@ -10,17 +10,13 @@ description: >
---*/
var global = this;
-var accessed = false;
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === global;
+ }
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === global;
-}
-
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, this), true, 'Array.prototype.reduceRight.call(obj, callbackfn, this)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js
index 35efbafc9..599387257 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4-s.js
@@ -10,14 +10,13 @@ description: >
flags: [noStrict]
---*/
-var innerThisCorrect = false;
-
-function callbackfn(prevVal, curVal, idx, obj)
-{
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
-[0].reduceRight(callbackfn, true);
+ var innerThisCorrect = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
+ [0].reduceRight(callbackfn,true);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js
index 7dd1ce5ed..2fc5083b7 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-4.js
@@ -9,20 +9,20 @@ description: >
numeric order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = arr.length - 1;
-var accessed = false;
-var result = true;
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = arr.length - 1;
+ var accessed = false;
+ var result = true;
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (lastIdx !== idx) {
- result = false;
- } else {
- lastIdx--;
- }
-}
-arr.reduceRight(callbackfn, 1);
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (lastIdx !== idx) {
+ result = false;
+ } else {
+ lastIdx--;
+ }
+ }
+ arr.reduceRight(callbackfn, 1);
assert(result, 'result !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js
index ccb63b811..8d3811a03 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-5.js
@@ -9,27 +9,27 @@ description: >
iteration and not prior to starting the loop on an Array
---*/
-var arr = [11, 12, 13, 14];
-var kIndex = [];
-var result = true;
-var called = 0;
+ var arr = [11, 12, 13, 14];
+ var kIndex = [];
+ var result = true;
+ var called = 0;
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(preVal, curVal, idx, o) {
- //Each position should be visited one time, which means k is accessed one time during iterations.
- called++;
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its next index should has been visited.
- if (idx !== arr.length - 1 && typeof kIndex[idx + 1] === "undefined") {
- result = false;
- }
- kIndex[idx] = 1;
- } else {
- result = false;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(preVal, curVal, idx, o) {
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ called++;
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its next index should has been visited.
+ if (idx !== arr.length - 1 && typeof kIndex[idx + 1] === "undefined") {
+ result = false;
+ }
+ kIndex[idx] = 1;
+ } else {
+ result = false;
+ }
+ }
-arr.reduceRight(callbackfn, 1);
+ arr.reduceRight(callbackfn, 1);
assert(result, 'result !== true');
assert.sameValue(called, 4, 'called');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js
index f6f26025d..2c4f53601 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-7.js
@@ -9,26 +9,21 @@ description: >
callbackfn terminate iteration
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx < 10) {
- accessed = true;
- }
- if (idx === 10) {
- throw new Test262Error("Exception occurred in callbackfn");
- }
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx < 10) {
+ accessed = true;
+ }
+ if (idx === 10) {
+ throw new Test262Error("Exception occurred in callbackfn");
+ }
+ }
-var obj = {
- 0: 11,
- 4: 10,
- 10: 8,
- length: 20
-};
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
assert.throws(Test262Error, function() {
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js
index 439445c5b..3625e8a4d 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-8.js
@@ -9,20 +9,15 @@ description: >
previous iterations is observed
---*/
-var accessed = false;
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
-
-function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- obj[idx - 1] = 8;
- }
- return curVal > 10;
-}
+ var accessed = false;
+ var obj = { 0: 11, 1: 12, length: 2 };
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ obj[idx - 1] = 8;
+ }
+ return curVal > 10;
+ }
assert.sameValue(Array.prototype.reduceRight.call(obj, callbackfn, 1), false, 'Array.prototype.reduceRight.call(obj, callbackfn, 1)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js
index c1dfba328..170d9d328 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-9.js
@@ -9,12 +9,12 @@ description: >
parameter
---*/
-var called = 0;
+ var called = 0;
-function callbackfn() {
- called++;
- return true;
-}
+ function callbackfn() {
+ called++;
+ return true;
+ }
assert.sameValue([11, 12].reduceRight(callbackfn, 11), true, '[11, 12].reduceRight(callbackfn, 11)');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js
index fd092bbb9..7ca4f7f6e 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T1.js
@@ -26,7 +26,7 @@ if (reverse !== x) {
}
//CHECK#3
-x = new Array(1, 2);
+x = new Array(1,2);
var reverse = x.reverse();
if (reverse !== x) {
$ERROR('#3: x = new Array(1,2); x.reverse() === x. Actual: ' + (reverse));
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js
index a488885d4..62f93f6e5 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A1_T2.js
@@ -26,52 +26,52 @@ if (reverse !== x) {
//CHECK#2
if (x[0] !== "-1") {
- $ERROR('#2: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[0] === "-1". Actual: ' + (x[0]));
+ $ERROR('#2: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[0] === "-1". Actual: ' + (x[0]));
}
//CHECK#3
if (x[1] !== "NaN") {
- $ERROR('#3: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[1] === "NaN". Actual: ' + (x[1]));
+ $ERROR('#3: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[1] === "NaN". Actual: ' + (x[1]));
}
//CHECK#4
if (x[2] !== undefined) {
- $ERROR('#4: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[2] === undefined. Actual: ' + (x[2]));
+ $ERROR('#4: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[2] === undefined. Actual: ' + (x[2]));
}
//CHECK#5
if (x[3] !== undefined) {
- $ERROR('#5: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[3] === undefined. Actual: ' + (x[3]));
+ $ERROR('#5: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[3] === undefined. Actual: ' + (x[3]));
}
//CHECK#6
if (x[4] !== undefined) {
- $ERROR('#6: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[4] === undefined. Actual: ' + (x[4]));
+ $ERROR('#6: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[4] === undefined. Actual: ' + (x[4]));
}
//CHECK#7
if (x[5] !== undefined) {
- $ERROR('#7: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[5] === undefined. Actual: ' + (x[5]));
+ $ERROR('#7: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[5] === undefined. Actual: ' + (x[5]));
}
//CHECK#8
if (x[6] !== undefined) {
- $ERROR('#8: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[6] === undefined. Actual: ' + (x[6]));
+ $ERROR('#8: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[6] === undefined. Actual: ' + (x[6]));
}
//CHECK#9
if (x[7] !== Infinity) {
- $ERROR('#9: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[7] === Infinity. Actual: ' + (x[7]));
+ $ERROR('#9: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[7] === Infinity. Actual: ' + (x[7]));
}
//CHECK#10
if (x[8] !== undefined) {
- $ERROR('#10: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[8] === undefined. Actual: ' + (x[8]));
+ $ERROR('#10: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[8] === undefined. Actual: ' + (x[8]));
}
//CHECK#11
if (x[9] !== true) {
- $ERROR('#11: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[9] === true. Actual: ' + (x[9]));
+ $ERROR('#11: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x[9] === true. Actual: ' + (x[9]));
}
x.length = 9;
@@ -83,45 +83,45 @@ if (reverse !== x) {
//CHECK#12
if (x[0] !== undefined) {
- $ERROR('#12: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[0] === undefined. Actual: ' + (x[0]));
+ $ERROR('#12: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[0] === undefined. Actual: ' + (x[0]));
}
//CHECK#13
if (x[1] !== Infinity) {
- $ERROR('#13: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[1] === Infinity. Actual: ' + (x[1]));
+ $ERROR('#13: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[1] === Infinity. Actual: ' + (x[1]));
}
//CHECK#14
if (x[2] !== undefined) {
- $ERROR('#14: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[2] === undefined. Actual: ' + (x[2]));
+ $ERROR('#14: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[2] === undefined. Actual: ' + (x[2]));
}
//CHECK#15
if (x[3] !== undefined) {
- $ERROR('#15: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[3] === undefined. Actual: ' + (x[3]));
+ $ERROR('#15: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[3] === undefined. Actual: ' + (x[3]));
}
//CHECK#16
if (x[4] !== undefined) {
- $ERROR('#16: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[4] === undefined. Actual: ' + (x[4]));
+ $ERROR('#16: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[4] === undefined. Actual: ' + (x[4]));
}
//CHECK#17
if (x[5] !== undefined) {
- $ERROR('#17: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[5] === undefined. Actual: ' + (x[5]));
+ $ERROR('#17: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[5] === undefined. Actual: ' + (x[5]));
}
//CHECK#18
if (x[6] !== undefined) {
- $ERROR('#18: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[6] === undefined. Actual: ' + (x[6]));
+ $ERROR('#18: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[6] === undefined. Actual: ' + (x[6]));
}
//CHECK#19
if (x[7] !== "NaN") {
- $ERROR('#19: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[7] === "NaN". Actual: ' + (x[7]));
+ $ERROR('#19: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[7] === "NaN". Actual: ' + (x[7]));
}
//CHECK#20
if (x[8] !== "-1") {
- $ERROR('#20: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[8] === "-1". Actual: ' + (x[8]));
+ $ERROR('#20: x = []; x[0] = true; x[2] = Infinity; x[4] = undefined; x[5] = undefined; x[8] = "NaN"; x[9] = "-1"; x.reverse(); x.length = 9; x.reverse(); x[8] === "-1". Actual: ' + (x[8]));
}
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js
index 384047599..ec750f626 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T1.js
@@ -31,52 +31,52 @@ if (reverse !== obj) {
//CHECK#2
if (obj[0] !== "-1") {
- $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
+ $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
}
//CHECK#3
if (obj[1] !== "NaN") {
- $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
+ $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
}
//CHECK#4
if (obj[2] !== undefined) {
- $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#5
if (obj[3] !== undefined) {
- $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#6
if (obj[4] !== undefined) {
- $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#7
if (obj[5] !== undefined) {
- $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#8
if (obj[6] !== undefined) {
- $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#9
if (obj[7] !== Infinity) {
- $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
+ $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
}
//CHECK#10
if (obj[8] !== undefined) {
- $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
+ $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
}
//CHECK#11
if (obj[9] !== true) {
- $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
+ $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
}
obj.length = 9;
@@ -88,45 +88,45 @@ if (reverse !== obj) {
//CHECK#12
if (obj[0] !== undefined) {
- $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
+ $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
}
//CHECK#13
if (obj[1] !== Infinity) {
- $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
+ $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
}
//CHECK#14
if (obj[2] !== undefined) {
- $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#15
if (obj[3] !== undefined) {
- $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#16
if (obj[4] !== undefined) {
- $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#17
if (obj[5] !== undefined) {
- $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#18
if (obj[6] !== undefined) {
- $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#19
if (obj[7] !== "NaN") {
- $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
+ $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
}
//CHECK#20
if (obj[8] !== "-1") {
- $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
+ $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = 9; obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
}
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js
index 77693f71c..2d521f112 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T2.js
@@ -31,52 +31,52 @@ if (reverse !== obj) {
//CHECK#2
if (obj[0] !== "-1") {
- $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
+ $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
}
//CHECK#3
if (obj[1] !== "NaN") {
- $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
+ $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
}
//CHECK#4
if (obj[2] !== undefined) {
- $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#5
if (obj[3] !== undefined) {
- $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#6
if (obj[4] !== undefined) {
- $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#7
if (obj[5] !== undefined) {
- $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#8
if (obj[6] !== undefined) {
- $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#9
if (obj[7] !== Infinity) {
- $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
+ $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
}
//CHECK#10
if (obj[8] !== undefined) {
- $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
+ $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
}
//CHECK#11
if (obj[9] !== true) {
- $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
+ $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
}
obj.length = new Number(9.5);
@@ -88,45 +88,45 @@ if (reverse !== obj) {
//CHECK#12
if (obj[0] !== undefined) {
- $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
+ $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
}
//CHECK#13
if (obj[1] !== Infinity) {
- $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
+ $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
}
//CHECK#14
if (obj[2] !== undefined) {
- $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#15
if (obj[3] !== undefined) {
- $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#16
if (obj[4] !== undefined) {
- $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#17
if (obj[5] !== undefined) {
- $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#18
if (obj[6] !== undefined) {
- $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#19
if (obj[7] !== "NaN") {
- $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
+ $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
}
//CHECK#20
if (obj[8] !== "-1") {
- $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
+ $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = 10.5; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new Number(9.5); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
}
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js
index 2fd9a2d2a..1c41625f8 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A2_T3.js
@@ -31,52 +31,52 @@ if (reverse !== obj) {
//CHECK#2
if (obj[0] !== "-1") {
- $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
+ $ERROR('#2: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[0] === "-1". Actual: ' + (obj[0]));
}
//CHECK#3
if (obj[1] !== "NaN") {
- $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
+ $ERROR('#3: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[1] === "NaN". Actual: ' + (obj[1]));
}
//CHECK#4
if (obj[2] !== undefined) {
- $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#4: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#5
if (obj[3] !== undefined) {
- $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#5: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#6
if (obj[4] !== undefined) {
- $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#6: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#7
if (obj[5] !== undefined) {
- $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#7: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#8
if (obj[6] !== undefined) {
- $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#8: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#9
if (obj[7] !== Infinity) {
- $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
+ $ERROR('#9: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[7] === Infinity. Actual: ' + (obj[7]));
}
//CHECK#10
if (obj[8] !== undefined) {
- $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
+ $ERROR('#10: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[8] === undefined. Actual: ' + (obj[8]));
}
//CHECK#11
if (obj[9] !== true) {
- $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
+ $ERROR('#11: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj[9] === true. Actual: ' + (obj[9]));
}
obj.length = new String("9");
@@ -88,45 +88,45 @@ if (reverse !== obj) {
//CHECK#12
if (obj[0] !== undefined) {
- $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
+ $ERROR('#12: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[0] === undefined. Actual: ' + (obj[0]));
}
//CHECK#13
if (obj[1] !== Infinity) {
- $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
+ $ERROR('#13: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[1] === Infinity. Actual: ' + (obj[1]));
}
//CHECK#14
if (obj[2] !== undefined) {
- $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
+ $ERROR('#14: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[2] === undefined. Actual: ' + (obj[2]));
}
//CHECK#15
if (obj[3] !== undefined) {
- $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#15: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[3] === undefined. Actual: ' + (obj[3]));
}
//CHECK#16
if (obj[4] !== undefined) {
- $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
+ $ERROR('#16: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[4] === undefined. Actual: ' + (obj[4]));
}
//CHECK#17
if (obj[5] !== undefined) {
- $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
+ $ERROR('#17: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[5] === undefined. Actual: ' + (obj[5]));
}
//CHECK#18
if (obj[6] !== undefined) {
- $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
+ $ERROR('#18: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[6] === undefined. Actual: ' + (obj[6]));
}
//CHECK#19
if (obj[7] !== "NaN") {
- $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
+ $ERROR('#19: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[7] === "NaN". Actual: ' + (obj[7]));
}
//CHECK#20
if (obj[8] !== "-1") {
- $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
+ $ERROR('#20: var obj = {}; obj.reverse = Array.prototype.reverse; obj.length = "10"; obj[0] = true; obj[2] = Infinity; obj[4] = undefined; obj[5] = undefined; obj[8] = "NaN"; obj[9] = "-1"; obj.reverse(); obj.length = new String("9"); obj.reverse(); obj[8] === "-1". Actual: ' + (obj[8]));
}
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js
index 44fefbf42..82fa71a07 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T1.js
@@ -40,9 +40,7 @@ if (x[1] !== 1) {
Object.prototype[1] = 1;
Object.prototype.length = 2;
Object.prototype.reverse = Array.prototype.reverse;
-x = {
- 0: 0
-};
+x = {0:0};
x.reverse();
//CHECK#5
diff --git a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js
index 942d287ad..f658651f4 100644
--- a/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js
+++ b/test/built-ins/Array/prototype/reverse/S15.4.4.8_A4_T2.js
@@ -11,7 +11,7 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [0, 1];
+var x = [0,1];
x.length = 2;
x.reverse();
@@ -40,10 +40,7 @@ if (x[1] !== -1) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.reverse = Array.prototype.reverse;
-x = {
- 0: 0,
- 1: 1
-};
+x = {0:0,1:1};
x.reverse();
//CHECK#5
diff --git a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js
index 94e53bb20..2296861a5 100644
--- a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js
+++ b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-object.js
@@ -11,20 +11,20 @@ info: |
...
---*/
-function StopReverse() {}
+function StopReverse() { }
// Object with large "length" property and no indexed properties in the uint32 range.
var arrayLike = {
- get "9007199254740990" () {
+ get "9007199254740990"() {
throw new StopReverse();
},
- get "9007199254740991" () {
+ get "9007199254740991"() {
$ERROR("Get 9007199254740991");
},
- get "9007199254740992" () {
+ get "9007199254740992"() {
$ERROR("Get 9007199254740992");
},
- length: 2 ** 53 + 2,
+ length: 2**53 + 2,
};
assert.throws(StopReverse, function() {
diff --git a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js
index 308eb5e19..e4b45f459 100644
--- a/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js
+++ b/test/built-ins/Array/prototype/reverse/length-exceeding-integer-limit-with-proxy.js
@@ -8,7 +8,7 @@ description: >
includes: [compareArray.js, proxyTrapsHelper.js]
---*/
-function StopReverse() {}
+function StopReverse() { }
var arrayLike = {
0: "zero",
@@ -25,7 +25,7 @@ var arrayLike = {
/* 9007199254740989: hole, */
9007199254740990: "2**53-2",
- length: 2 ** 53 + 2,
+ length: 2**53 + 2,
};
var traps = [];
@@ -106,7 +106,7 @@ assert.compareArray(traps, [
"Get:4",
]);
-assert.sameValue(arrayLike.length, 2 ** 53 + 2, "Length property is not modified");
+assert.sameValue(arrayLike.length, 2**53 + 2, "Length property is not modified");
assert.sameValue(arrayLike[0], "2**53-2", "Property at index 0");
assert.sameValue(1 in arrayLike, false, "Property at index 1");
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js
index b087c14b7..f84a5392e 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.1_T1.js
@@ -23,7 +23,7 @@ if (x.length !== 0) {
}
//CHECK#3
-var x = Array(1, 2, 3);
+var x = Array(1,2,3);
x.length = 0;
var shift = x.shift();
if (shift !== undefined) {
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js
index b736fa0f3..3fac087a2 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A1.2_T1.js
@@ -11,7 +11,7 @@ description: Checking this use new Array() and []
---*/
//CHECK#1
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
var shift = x.shift();
if (shift !== 0) {
$ERROR('#1: x = new Array(0,1,2,3); x.shift() === 0. Actual: ' + (shift));
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js
index caf6bcb18..ea342a469 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T1.js
@@ -18,15 +18,15 @@ obj.shift = Array.prototype.shift;
if (obj.length !== undefined) {
$ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length));
} else {
- //CHECK#1
- var shift = obj.shift();
- if (shift !== undefined) {
- $ERROR('#1: var obj = {}; obj.shift = Array.prototype.shift; obj.shift() === undefined. Actual: ' + (shift));
- }
- //CHECK#2
- if (obj.length !== 0) {
- $ERROR('#2: var obj = {}; obj.shift = Array.prototype.shift; obj.shift(); obj.length === 0. Actual: ' + (obj.length));
- }
+ //CHECK#1
+ var shift = obj.shift();
+if (shift !== undefined) {
+ $ERROR('#1: var obj = {}; obj.shift = Array.prototype.shift; obj.shift() === undefined. Actual: ' + (shift));
+ }
+ //CHECK#2
+ if (obj.length !== 0) {
+ $ERROR('#2: var obj = {}; obj.shift = Array.prototype.shift; obj.shift(); obj.length === 0. Actual: ' + (obj.length));
+ }
}
//CHECK#3
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js
index af9768c91..2dc7695d2 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T2.js
@@ -50,7 +50,7 @@ if (shift !== undefined) {
if (obj.length !== 0) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.shift = Array.prototype.shift; obj.shift(); obj.length === 0. Actual: ' + (obj.length));
} else {
- if (1 / obj.length !== Number.POSITIVE_INFINITY) {
+ if (1/obj.length !== Number.POSITIVE_INFINITY) {
$ERROR('#8: var obj = {}; obj.length = -0; obj.shift = Array.prototype.shift; obj.shift(); obj.length === +0. Actual: ' + (obj.length));
}
}
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js
index 51e927577..f16915d79 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A2_T5.js
@@ -17,11 +17,7 @@ obj.shift = Array.prototype.shift;
//CHECK#1
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- }
-};
+obj.length = {valueOf: function() {return 1}};
var shift = obj.shift();
if (shift !== -1) {
$ERROR('#1: obj[0] = -1; obj.length = {valueOf: function() {return 1}} obj.shift() === -1. Actual: ' + (shift));
@@ -29,14 +25,7 @@ if (shift !== -1) {
//CHECK#2
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return 0
- }
-};
+obj.length = {valueOf: function() {return 1}, toString: function() {return 0}};
var shift = obj.shift();
if (shift !== -1) {
$ERROR('#0: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return 0}} obj.shift() === -1. Actual: ' + (shift));
@@ -44,14 +33,7 @@ if (shift !== -1) {
//CHECK#3
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return {}
- }
-};
+obj.length = {valueOf: function() {return 1}, toString: function() {return {}}};
var shift = obj.shift();
if (shift !== -1) {
$ERROR('#3: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {return {}}} obj.shift() === -1. Actual: ' + (shift));
@@ -60,16 +42,9 @@ if (shift !== -1) {
//CHECK#4
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- throw "error"
- }
- };
+ obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}};
var shift = obj.shift();
- if (shift !== -1) {
+if (shift !== -1) {
$ERROR('#4.1: obj[0] = -1; obj.length = {valueOf: function() {return 1}, toString: function() {throw "error"}}; obj.shift() === ",". Actual: ' + (shift));
}
}
@@ -83,11 +58,7 @@ catch (e) {
//CHECK#5
obj[0] = -1;
-obj.length = {
- toString: function() {
- return 0
- }
-};
+obj.length = {toString: function() {return 0}};
var shift = obj.shift();
if (shift !== undefined) {
$ERROR('#5: obj[0] = -1; obj.length = {toString: function() {return 0}} obj.shift() === undefined. Actual: ' + (shift));
@@ -95,14 +66,7 @@ if (shift !== undefined) {
//CHECK#6
obj[0] = -1;
-obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return 0
- }
-}
+obj.length = {valueOf: function() {return {}}, toString: function() {return 0}}
var shift = obj.shift();
if (shift !== undefined) {
$ERROR('#6: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return 0}} obj.shift() === undefined. Actual: ' + (shift));
@@ -111,14 +75,7 @@ if (shift !== undefined) {
//CHECK#7
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return 0
- }
- };
+ obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}};
var shift = obj.shift();
$ERROR('#7.1: obj[0] = -1; obj.length = {valueOf: function() {throw "error"}, toString: function() {return 0}}; obj.shift() throw "error". Actual: ' + (shift));
}
@@ -131,14 +88,7 @@ catch (e) {
//CHECK#8
try {
obj[0] = -1;
- obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ obj.length = {valueOf: function() {return {}}, toString: function() {return {}}};
var shift = obj.shift();
$ERROR('#8.1: obj[0] = -1; obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.shift() throw TypeError. Actual: ' + (shift));
}
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js
index f1c786b21..60942b64a 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A3_T3.js
@@ -27,10 +27,10 @@ if (obj.length !== 0) {
//CHECK#3
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x"; obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x"; obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[1] !== "y") {
- $ERROR('#4: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x" obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[1] === "y". Actual: ' + (obj[1]));
+ $ERROR('#4: var obj = {}; obj.shift = Array.prototype.shift; obj[0] = "x" obj[1] = "y"; obj.length = -4294967294; obj.shift(); obj[1] === "y". Actual: ' + (obj[1]));
}
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js
index 8b7854630..3a7c667f3 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T1.js
@@ -33,9 +33,7 @@ if (x[1] !== 1) {
Object.prototype[1] = 1;
Object.prototype.length = 2;
Object.prototype.shift = Array.prototype.shift;
-x = {
- 0: 0
-};
+x = {0:0};
//CHECK#4
var shift = x.shift();
diff --git a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js
index 20fb5644e..703c32e10 100644
--- a/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js
+++ b/test/built-ins/Array/prototype/shift/S15.4.4.9_A4_T2.js
@@ -11,7 +11,7 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [0, 1];
+var x = [0,1];
x.length = 2;
//CHECK#1
@@ -33,10 +33,7 @@ if (x[1] !== -1) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.shift = Array.prototype.shift;
-x = {
- 0: 0,
- 1: 1
-};
+x = {0:0,1:1};
//CHECK#4
var shift = x.shift();
diff --git a/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js b/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js
index ec1f509d3..bd1c36582 100644
--- a/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js
+++ b/test/built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js
@@ -9,15 +9,15 @@ description: >
index property (read-only) exists in Array.prototype (Step 10.c.ii)
---*/
-var arrObj = [1, 2, 3];
+ var arrObj = [1, 2, 3];
-Object.defineProperty(Array.prototype, "0", {
- value: "test",
- writable: false,
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ value: "test",
+ writable: false,
+ configurable: true
+ });
-var newArr = arrObj.slice(0, 1);
+ var newArr = arrObj.slice(0, 1);
assert(newArr.hasOwnProperty("0"), 'newArr.hasOwnProperty("0") !== true');
assert.sameValue(newArr[0], 1, 'newArr[0]');
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js
index befb1fd88..567f24e6d 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T1
description: length > end > start = 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js
index 5955eb054..42027f84c 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T2
description: length > end = start > 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(3, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(3,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js
index 1967fdbca..29b2074ed 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T3
description: length > start > end > 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(4, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(4,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js
index 719d7634c..7191ed8e2 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T4
description: length = end = start > 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(5, 5);
+var x = [0,1,2,3,4];
+var arr = x.slice(5,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js
index 6c6e24b85..b5ccf1064 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T5.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T5
description: length = end > start > 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(3, 5);
+var x = [0,1,2,3,4];
+var arr = x.slice(3,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js
index 63a86046a..c66a6bddf 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T6.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T6
description: length > end > start > 0;
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(2, 4);
+var x = [0,1,2,3,4];
+var arr = x.slice(2,4);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js
index 158c4e01d..5e1585a52 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.1_T7.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.1_T7
description: end > length > start > 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(3, 6);
+var x = [0,1,2,3,4];
+var arr = x.slice(3,6);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js
index f79bd3d4f..efac0d415 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T1
description: length > end = abs(start), start < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-3, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(-3,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js
index ef60e55af..f424caee9 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T2
description: length = end > abs(start), start < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-1, 5);
+var x = [0,1,2,3,4];
+var arr = x.slice(-1,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js
index c598e8679..8b6018424 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T3
description: abs(start) = length > end > 0, start < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-5, 1);
+var x = [0,1,2,3,4];
+var arr = x.slice(-5,1);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js
index c12138e36..cddd4790b 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.2_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.2_T4
description: abs(start) > length = end > 0, start < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-9, 5);
+var x = [0,1,2,3,4];
+var arr = x.slice(-9,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js
index 664ed6861..b5d84984f 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T1
description: length > abs(end) > start = 0, end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, -2);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,-2);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js
index 761cb1266..0b4c0c2bc 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T2
description: length > abs(end) > start > 0, end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(1, -4);
+var x = [0,1,2,3,4];
+var arr = x.slice(1,-4);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js
index 37f75f8cb..f14a223e3 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T3
description: length = abs(end) > start = 0, end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, -5);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,-5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js
index c62284187..f544b49f5 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.3_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.3_T4
description: abs(end) > length > start > 0, end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(4, -9);
+var x = [0,1,2,3,4];
+var arr = x.slice(4,-9);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js
index ac01bd21b..91919d207 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T1
description: -length = start < end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-5, -2);
+var x = [0,1,2,3,4];
+var arr = x.slice(-5,-2);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js
index a08595272..b0d708464 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T2
description: -length < start < end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-3, -1);
+var x = [0,1,2,3,4];
+var arr = x.slice(-3,-1);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js
index 0942b395b..222609a98 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T3
description: start < -length < end < 0
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-9, -1);
+var x = [0,1,2,3,4];
+var arr = x.slice(-9,-1);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js
index 3536e83a9..cb326f250 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.4_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.10_A1.4_T4
description: start = end < -length
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(-6, -6);
+var x = [0,1,2,3,4];
+var arr = x.slice(-6,-6);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js
index 47fc27eaf..dc61d20fa 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T1.js
@@ -8,7 +8,7 @@ es5id: 15.4.4.10_A1.5_T1
description: end === undefined
---*/
-var x = [0, 1, 2, 3, 4];
+var x = [0,1,2,3,4];
var arr = x.slice(3, undefined);
//CHECK#1
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js
index d6423de98..7bdeb3983 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A1.5_T2.js
@@ -8,7 +8,7 @@ es5id: 15.4.4.10_A1.5_T2
description: end is absent
---*/
-var x = [0, 1, 2, 3, 4];
+var x = [0,1,2,3,4];
var arr = x.slice(-2);
//CHECK#1
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js
index ceecbe2ae..d81cd4a98 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T1.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T1
description: start is not integer
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(2.5, 4);
+var x = [0,1,2,3,4];
+var arr = x.slice(2.5,4);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js
index be2087bab..6c86d2e50 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T2.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T2
description: start = NaN
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(NaN, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(NaN,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js
index 41514e027..d61be15bf 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T3.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T3
description: start = Infinity
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(Number.POSITIVE_INFINITY, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(Number.POSITIVE_INFINITY,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js
index 7d1f0fc99..86c49a99a 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T4.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.1_T4
description: start = -Infinity
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(Number.NEGATIVE_INFINITY, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice(Number.NEGATIVE_INFINITY,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js
index e0c60b2fe..57e496f09 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.1_T5.js
@@ -8,15 +8,8 @@ es5id: 15.4.4.10_A2.1_T5
description: ToInteger use ToNumber
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice({
- valueOf: function() {
- return 0
- },
- toString: function() {
- return 3
- }
-}, 3);
+var x = [0,1,2,3,4];
+var arr = x.slice({valueOf: function() {return 0}, toString: function() {return 3}},3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js
index b5274f83b..5614b6d5a 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T1.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T1
description: end is not integer
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(2, 4.5);
+var x = [0,1,2,3,4];
+var arr = x.slice(2,4.5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js
index ab712d9ba..1ba6d4971 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T2.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T2
description: end = NaN
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, NaN);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,NaN);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js
index 31c4a0359..71a12e4c5 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T3.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T3
description: end = Infinity
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, Number.POSITIVE_INFINITY);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,Number.POSITIVE_INFINITY);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js
index d5f4063e8..b4e12693c 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T4.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.10_A2.2_T4
description: end = -Infinity
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, Number.NEGATIVE_INFINITY);
+var x = [0,1,2,3,4];
+var arr = x.slice(0,Number.NEGATIVE_INFINITY);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js
index 78affa8a2..17e113c6b 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2.2_T5.js
@@ -8,15 +8,8 @@ es5id: 15.4.4.10_A2.2_T5
description: ToInteger use ToNumber
---*/
-var x = [0, 1, 2, 3, 4];
-var arr = x.slice(0, {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return 0
- }
-});
+var x = [0,1,2,3,4];
+var arr = x.slice(0,{valueOf: function() {return 3}, toString: function() {return 0}});
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js
index 05fb643f1..2bb88ee45 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T1.js
@@ -20,7 +20,7 @@ obj[2] = 2;
obj[3] = 3;
obj[4] = 4;
obj.length = 5;
-var arr = obj.slice(0, 3);
+var arr = obj.slice(0,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js
index 0971b1a47..bf6dbdc52 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T2.js
@@ -20,7 +20,7 @@ obj[2] = 2;
obj[3] = 3;
obj[4] = 4;
obj.length = 5;
-var arr = obj.slice(-5, 3);
+var arr = obj.slice(-5,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js
index 9214694c6..2d0ef0d24 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T3.js
@@ -20,7 +20,7 @@ obj[2] = 2;
obj[3] = 3;
obj[4] = 4;
obj.length = 5;
-var arr = obj.slice(0, -2);
+var arr = obj.slice(0,-2);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js
index 398423039..d1aa9d258 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A2_T4.js
@@ -20,7 +20,7 @@ obj[2] = 2;
obj[3] = 3;
obj[4] = 4;
obj.length = 5;
-var arr = obj.slice(-5, -2);
+var arr = obj.slice(-5,-2);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js
index 63b69324b..1a4ad0bb1 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T1.js
@@ -15,10 +15,10 @@ obj[4294967295] = "y";
obj.length = 4294967296;
try {
- var arr = obj.slice(0, 4294967296);
+ var arr = obj.slice(0,4294967296);
$ERROR('#1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.slice(0,4294967296); lead to throwing exception.');
} catch (e) {
if (!(e instanceof RangeError)) {
- $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.slice(0,4294967296); lead to throwing exception. Exception is instance of RangeError. Actual: exception is ' + e);
+ $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.slice(0,4294967296); lead to throwing exception. Exception is instance of RangeError. Actual: exception is '+e);
}
}
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js
index d6d1c630f..7c65b5fbe 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js
@@ -15,10 +15,10 @@ obj[4294967296] = "y";
obj.length = 4294967297;
try {
- var arr = obj.slice(0, 4294967297);
+ var arr = obj.slice(0,4294967297);
$ERROR('#1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception.');
} catch (e) {
if (!(e instanceof RangeError)) {
- $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception. Exception is instance of RangeError. Actual: exception is ' + e);
+ $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception. Exception is instance of RangeError. Actual: exception is '+e);
}
}
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js
index 95da2f223..a5b78f6f0 100644
--- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js
+++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T3.js
@@ -12,7 +12,7 @@ var obj = {};
obj.slice = Array.prototype.slice;
obj[4294967294] = "x";
obj.length = -1;
-var arr = obj.slice(4294967294, 4294967295);
+var arr = obj.slice(4294967294,4294967295);
//CHECK#1
if (arr.length !== 0) {
@@ -21,5 +21,5 @@ if (arr.length !== 0) {
//CHECK#3
if (arr[0] !== undefined) {
- $ERROR('#3: var obj = {}; obj.slice = Array.prototype.slice; obj[4294967294] = "x"; obj.length = 4294967295; var arr = obj.slice(4294967294,4294967295); arr[0] === undefined. Actual: ' + (arr[0]));
+ $ERROR('#3: var obj = {}; obj.slice = Array.prototype.slice; obj[4294967294] = "x"; obj.length = 4294967295; var arr = obj.slice(4294967294,4294967295); arr[0] === undefined. Actual: ' + (arr[0]));
}
diff --git a/test/built-ins/Array/prototype/slice/create-non-array.js b/test/built-ins/Array/prototype/slice/create-non-array.js
index d1cbc4585..9061638d0 100644
--- a/test/built-ins/Array/prototype/slice/create-non-array.js
+++ b/test/built-ins/Array/prototype/slice/create-non-array.js
@@ -16,9 +16,7 @@ info: |
4. If isArray is false, return ? ArrayCreate(length).
---*/
-var obj = {
- length: 0
-};
+var obj = { length: 0 };
var callCount = 0;
var result;
Object.defineProperty(obj, 'constructor', {
diff --git a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js
index d1839760a..1d9f80606 100644
--- a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js
+++ b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit-proxied-array.js
@@ -30,27 +30,27 @@ array["9007199254740991"] = "9007199254740991";
var proxy = new Proxy(array, {
get(t, pk, r) {
if (pk === "length")
- return 2 ** 53 + 2;
+ return 2**53 + 2;
return Reflect.get(t, pk, r);
}
});
var result = Array.prototype.slice.call(proxy, 9007199254740989);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(9007199254740989)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(9007199254740989)");
var result = Array.prototype.slice.call(proxy, 9007199254740989, 9007199254740990);
-assert.compareArray(result, ["9007199254740989"],
- "slice(9007199254740989, 9007199254740990)");
+assert.compareArray(result, [ "9007199254740989" ],
+ "slice(9007199254740989, 9007199254740990)");
var result = Array.prototype.slice.call(proxy, 9007199254740989, 9007199254740996);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(9007199254740989, 9007199254740996)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(9007199254740989, 9007199254740996)");
var result = Array.prototype.slice.call(proxy, -2);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(-2)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(-2)");
var result = Array.prototype.slice.call(proxy, -2, -1);
-assert.compareArray(result, ["9007199254740989"],
- "slice(-2, -1)");
+assert.compareArray(result, [ "9007199254740989" ],
+ "slice(-2, -1)");
diff --git a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js
index d3b429288..2fa32db97 100644
--- a/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js
+++ b/test/built-ins/Array/prototype/slice/length-exceeding-integer-limit.js
@@ -23,25 +23,25 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
"9007199254740990": "9007199254740990",
"9007199254740991": "9007199254740991",
- length: 2 ** 53 + 2,
+ length: 2**53 + 2,
};
var result = Array.prototype.slice.call(arrayLike, 9007199254740989);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(9007199254740989)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(9007199254740989)");
var result = Array.prototype.slice.call(arrayLike, 9007199254740989, 9007199254740990);
-assert.compareArray(result, ["9007199254740989"],
- "slice(9007199254740989, 9007199254740990)");
+assert.compareArray(result, [ "9007199254740989" ],
+ "slice(9007199254740989, 9007199254740990)");
var result = Array.prototype.slice.call(arrayLike, 9007199254740989, 9007199254740996);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(9007199254740989, 9007199254740996)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(9007199254740989, 9007199254740996)");
var result = Array.prototype.slice.call(arrayLike, -2);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "slice(-2)");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "slice(-2)");
var result = Array.prototype.slice.call(arrayLike, -2, -1);
-assert.compareArray(result, ["9007199254740989"],
- "slice(-2, -1)");
+assert.compareArray(result, [ "9007199254740989" ],
+ "slice(-2, -1)");
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js
index d4f780dfa..216ca2186 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-1.js
@@ -9,5 +9,5 @@ description: Array.prototype.some applied to undefined throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.some.call(undefined);
+ Array.prototype.some.call(undefined);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js
index b0bf38a18..7c6c28469 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-10.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-10
description: Array.prototype.some applied to the Math object
---*/
-function callbackfn(val, idx, obj) {
- return '[object Math]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object Math]' === Object.prototype.toString.call(obj);
+ }
-Math.length = 1;
-Math[0] = 1;
+ Math.length = 1;
+ Math[0] = 1;
assert(Array.prototype.some.call(Math, callbackfn), 'Array.prototype.some.call(Math, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js
index d61f9594b..79081ad78 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-11.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-11
description: Array.prototype.some applied to Date object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Date;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Date;
+ }
-var obj = new Date();
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 9;
+ var obj = new Date();
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js
index 905cf4274..e34099ca7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-12.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-12
description: Array.prototype.some applied to RegExp object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof RegExp;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof RegExp;
+ }
-var obj = new RegExp();
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 9;
+ var obj = new RegExp();
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js
index 55105713d..650afc630 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-13.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-13
description: Array.prototype.some applied to the JSON object
---*/
-function callbackfn(val, idx, obj) {
- return '[object JSON]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object JSON]' === Object.prototype.toString.call(obj);
+ }
-JSON.length = 1;
-JSON[0] = 1;
+ JSON.length = 1;
+ JSON[0] = 1;
assert(Array.prototype.some.call(JSON, callbackfn), 'Array.prototype.some.call(JSON, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js
index 821828784..292ab95af 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-14.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.17-1-14
description: Array.prototype.some applied to Error object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Error;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Error;
+ }
-var obj = new Error();
-obj.length = 1;
-obj[0] = 1;
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js
index 27cfa61db..d4622f376 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-15.js
@@ -7,12 +7,12 @@ es5id: 15.4.4.17-1-15
description: Array.prototype.some applied to the Arguments object
---*/
-function callbackfn(val, idx, obj) {
- return '[object Arguments]' === Object.prototype.toString.call(obj);
-}
+ function callbackfn(val, idx, obj) {
+ return '[object Arguments]' === Object.prototype.toString.call(obj);
+ }
-var obj = (function() {
- return arguments;
-}("a", "b"));
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js
index abc12eef8..bdcf9c45c 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-2.js
@@ -9,5 +9,5 @@ description: Array.prototype.some applied to null throws a TypeError
assert.throws(TypeError, function() {
- Array.prototype.some.call(null);
+ Array.prototype.some.call(null);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js
index 38edf932d..49c698f37 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-3.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-3
description: Array.prototype.some applied to boolean primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-Boolean.prototype[0] = 1;
-Boolean.prototype.length = 1;
+ Boolean.prototype[0] = 1;
+ Boolean.prototype.length = 1;
assert(Array.prototype.some.call(false, callbackfn), 'Array.prototype.some.call(false, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js
index e025ac0c2..d17988608 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-4.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-4
description: Array.prototype.some applied to Boolean object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Boolean;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Boolean;
+ }
-var obj = new Boolean(true);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 9;
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js
index 827d030ef..ce0483b51 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-5.js
@@ -7,11 +7,11 @@ es5id: 15.4.4.17-1-5
description: Array.prototype.some applied to number primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-Number.prototype[1] = true;
-Number.prototype.length = 2;
+ Number.prototype[1] = true;
+ Number.prototype.length = 2;
assert(Array.prototype.some.call(5, callbackfn), 'Array.prototype.some.call(5, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js
index 78791585e..a5c84bfe5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-6.js
@@ -7,13 +7,13 @@ es5id: 15.4.4.17-1-6
description: Array.prototype.some applied to Number object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Number;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Number;
+ }
-var obj = new Number(-128);
-obj.length = 2;
-obj[0] = 11;
-obj[1] = 9;
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js
index f69a384e3..c44c66dc3 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-7.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-1-7
description: Array.prototype.some applied to applied to string primitive
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
assert(Array.prototype.some.call("hello\nw_orld\\!", callbackfn), 'Array.prototype.some.call("hello\nw_orld\\!", callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js
index 4a439b90e..bbef0f62b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-8.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-1-8
description: Array.prototype.some applied to String object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof String;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof String;
+ }
-var obj = new String("hello\nw_orld\\!");
+ var obj = new String("hello\nw_orld\\!");
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js
index 866d6f61b..3dd74e302 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-1-9.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.17-1-9
description: Array.prototype.some applied to Function object
---*/
-function callbackfn(val, idx, obj) {
- return obj instanceof Function;
-}
+ function callbackfn(val, idx, obj) {
+ return obj instanceof Function;
+ }
-var obj = function(a, b) {
- return a + b;
-};
-obj[0] = 11;
-obj[1] = 9;
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js
index aa8eeca34..b8d3aec50 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-1.js
@@ -9,20 +9,20 @@ description: >
Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: 2
-};
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: 2
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js
index 5a97e40fd..29409cea9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-10.js
@@ -9,30 +9,30 @@ description: >
on an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
-
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
+
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js
index 040621119..41b817a87 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-11.js
@@ -9,21 +9,21 @@ description: >
without a get function on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js
index 0f4f5077f..df83ae028 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-12.js
@@ -10,28 +10,25 @@ description: >
Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-Object.defineProperty(Object.prototype, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-var obj = {
- 0: 11,
- 1: 12
-};
-Object.defineProperty(obj, "length", {
- set: function() {},
- configurable: true
-});
+ var obj = { 0: 11, 1: 12 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js
index 568c27705..d16ce1148 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-13.js
@@ -9,25 +9,25 @@ description: >
without a get function on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var proto = {};
-Object.defineProperty(proto, "length", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 11;
-child[1] = 12;
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
assert.sameValue(Array.prototype.some.call(child, callbackfn), false, 'Array.prototype.some.call(child, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js
index 78ee06b3e..ce43f05a3 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-14.js
@@ -9,17 +9,14 @@ description: >
Array-like object
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js
index 21eb5feba..67829327e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-17.js
@@ -9,18 +9,18 @@ description: >
implements its own property get method
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var func = function(a, b) {
- arguments[2] = 12;
- return Array.prototype.some.call(arguments, callbackfn1) &&
- !Array.prototype.some.call(arguments, callbackfn2);
-};
+ var func = function (a, b) {
+ arguments[2] = 12;
+ return Array.prototype.some.call(arguments, callbackfn1) &&
+ !Array.prototype.some.call(arguments, callbackfn2);
+ };
assert(func(9, 11), 'func(9, 11) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js
index 336a943e4..e640da588 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-18.js
@@ -9,17 +9,17 @@ description: >
own property get method
---*/
-function callbackfn1(val, idx, obj) {
- return parseInt(val, 10) > 1;
-}
+ function callbackfn1(val, idx, obj) {
+ return parseInt(val, 10) > 1;
+ }
-function callbackfn2(val, idx, obj) {
- return parseInt(val, 10) > 2;
-}
+ function callbackfn2(val, idx, obj) {
+ return parseInt(val, 10) > 2;
+ }
-var str = new String("12");
+ var str = new String("12");
-String.prototype[2] = "3";
+ String.prototype[2] = "3";
assert(Array.prototype.some.call(str, callbackfn1), 'Array.prototype.some.call(str, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(str, callbackfn2), false, 'Array.prototype.some.call(str, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js
index 07c1ada28..a299cbbc7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-19.js
@@ -9,20 +9,20 @@ description: >
its own property get method
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var fun = function(a, b) {
- return a + b;
-};
-fun[0] = 9;
-fun[1] = 11;
-fun[2] = 12;
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 9;
+ fun[1] = 11;
+ fun[2] = 12;
assert(Array.prototype.some.call(fun, callbackfn1), 'Array.prototype.some.call(fun, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(fun, callbackfn2), false, 'Array.prototype.some.call(fun, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js
index e8d870de6..e546927ed 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-2.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.17-2-2
description: Array.prototype.some - 'length' is own data property on an Array
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-Array.prototype[2] = 12;
+ Array.prototype[2] = 12;
assert([9, 11].some(callbackfn1), '[9, 11].some(callbackfn1) !== true');
assert.sameValue([9, 11].some(callbackfn2), false, '[9, 11].some(callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js
index f663fb274..d2ef52b08 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-3.js
@@ -9,26 +9,24 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ var child = new Con();
+ child.length = 2;
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js
index b966fb8c8..e3461b6b2 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-4.js
@@ -9,19 +9,18 @@ description: >
overrides an inherited data property on an array
---*/
-var arrProtoLen = 0;
+ var arrProtoLen = 0;
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-arrProtoLen = Array.prototype.length;
-Array.prototype.length = 0;
-Array.prototype[2] = 12;
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
+ Array.prototype[2] = 12;
assert([9, 11].some(callbackfn1), '[9, 11].some(callbackfn1) !== true');
assert.sameValue([9, 11].some(callbackfn2), false, '[9, 11].some(callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js
index 6433283d2..af407300f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-5.js
@@ -9,35 +9,35 @@ description: >
overrides an inherited accessor property on an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
-
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
-});
-
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
+
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js
index 2b322c625..c559436e5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-6.js
@@ -9,25 +9,23 @@ description: >
an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var proto = {
- length: 2
-};
+ var proto = { length: 2 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ var child = new Con();
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js
index 0a3e4b4e6..223196674 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-7.js
@@ -9,26 +9,26 @@ description: >
Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {};
+ var obj = { };
-Object.defineProperty(obj, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-obj[0] = 9;
-obj[1] = 11;
-obj[2] = 12;
+ obj[0] = 9;
+ obj[1] = 11;
+ obj[2] = 12;
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js
index 9e23a9381..4fd06784b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-8.js
@@ -9,33 +9,31 @@ description: >
overrides an inherited data property on an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var proto = {
- length: 3
-};
+ var proto = { length: 3 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
+ var child = new Con();
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js
index c670d9a8d..efd0405f0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-2-9.js
@@ -9,38 +9,38 @@ description: >
overrides an inherited accessor property on an Array-like object
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
-
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "length", {
- get: function() {
- return 3;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-Object.defineProperty(child, "length", {
- get: function() {
- return 2;
- },
- configurable: true
-});
-
-child[0] = 9;
-child[1] = 11;
-child[2] = 12;
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
+
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ child[0] = 9;
+ child[1] = 11;
+ child[2] = 12;
assert(Array.prototype.some.call(child, callbackfn1), 'Array.prototype.some.call(child, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(child, callbackfn2), false, 'Array.prototype.some.call(child, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js
index 8f93e82c5..75dd25133 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-1.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-3-1
description: Array.prototype.some - value of 'length' is undefined
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: undefined
-};
+ var obj = { 0: 11, length: undefined };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js
index ef0361216..042091cbf 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-10.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-3-10
description: Array.prototype.some - value of 'length' is a number (value is NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: NaN
-};
+ var obj = { 0: 11, length: NaN };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js
index fa9790642..0c0dc91bd 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-11.js
@@ -9,20 +9,15 @@ description: >
number
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "2"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "2" };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js
index ac407faa9..5308096de 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-12.js
@@ -9,20 +9,15 @@ description: >
number
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "-4294967294"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "-4294967294" };
assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js
index dcaa0d724..127405c68 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-13.js
@@ -9,20 +9,15 @@ description: >
number
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "2.5"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "2.5" };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js
index 77607bfca..ac471bf34 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-14.js
@@ -7,25 +7,16 @@ es5id: 15.4.4.17-3-14
description: Array.prototype.some - 'length' is a string containing +/-Infinity
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var objOne = {
- 0: 11,
- length: "Infinity"
-};
-var objTwo = {
- 0: 11,
- length: "+Infinity"
-};
-var objThree = {
- 0: 11,
- length: "-Infinity"
-};
+ var objOne = { 0: 11, length: "Infinity" };
+ var objTwo = { 0: 11, length: "+Infinity" };
+ var objThree = { 0: 11, length: "-Infinity" };
assert(Array.prototype.some.call(objOne, callbackfn), 'Array.prototype.some.call(objOne, callbackfn) !== true');
assert(Array.prototype.some.call(objTwo, callbackfn), 'Array.prototype.some.call(objTwo, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js
index a74c4bceb..08a39ca38 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-15.js
@@ -9,20 +9,15 @@ description: >
exponential number
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "2E0"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "2E0" };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js
index 057f06876..86173aca7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-16.js
@@ -7,20 +7,15 @@ es5id: 15.4.4.17-3-16
description: Array.prototype.some - 'length' is a string containing a hex number
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "0x0002"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "0x0002" };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js
index 857fa9a37..cf2759e88 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-17.js
@@ -9,20 +9,15 @@ description: >
with leading zeros
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: "0002.00"
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: "0002.00" };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js
index 13de82ccd..a8924f21f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-18.js
@@ -9,18 +9,14 @@ description: >
convert to a number
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 21,
- length: "two"
-};
+ var obj = { 0: 11, 1: 21, length: "two" };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js
index c8521e83c..dddf8132d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-19.js
@@ -9,27 +9,27 @@ description: >
own toString method
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var toStringAccessed = false;
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
+ var toStringAccessed = false;
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
- length: {
- toString: function() {
- toStringAccessed = true;
- return '2';
- }
- }
-};
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
+ }
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js
index 2898ce5ae..3b90cbdd1 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-2.js
@@ -9,19 +9,15 @@ description: >
(length overridden to true(type conversion))
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: true
-};
+ var obj = { 0: 11, 1: 12, length: true };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js
index 9464bc45e..af023ef5e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-20.js
@@ -9,27 +9,27 @@ description: >
own valueOf method
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var valueOfAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
- }
-};
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ }
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js
index c0d6aa9c8..cb1926df0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-21.js
@@ -10,32 +10,32 @@ description: >
returns a string
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return '2';
- }
- }
-};
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
+ }
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js
index 1dc3f2b00..a166c39f7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-22.js
@@ -10,32 +10,32 @@ description: >
primitive values
---*/
-var callbackfnAccessed = false;
-var toStringAccessed = false;
-var valueOfAccessed = false;
+ var callbackfnAccessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
-function callbackfn(val, idx, obj) {
- callbackfnAccessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ callbackfnAccessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12,
+ var obj = {
+ 0: 11,
+ 1: 12,
- length: {
- valueOf: function() {
- valueOfAccessed = true;
- return {};
- },
- toString: function() {
- toStringAccessed = true;
- return {};
- }
- }
-};
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ }
+ }
+ };
assert.throws(TypeError, function() {
- Array.prototype.some.call(obj, callbackfn);
+ Array.prototype.some.call(obj, callbackfn);
});
assert(toStringAccessed, 'toStringAccessed !== true');
assert(valueOfAccessed, 'valueOfAccessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js
index ec119aec4..29c6dfbbd 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-23.js
@@ -9,40 +9,40 @@ description: >
is an object with an own toString and inherited valueOf methods
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
-
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
-
-var valueOfAccessed = false;
-var toStringAccessed = false;
-
-var proto = {
- valueOf: function() {
- valueOfAccessed = true;
- return 2;
- }
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-
-child.toString = function() {
- toStringAccessed = true;
- return '1';
-};
-
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: child
-};
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
+
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
+
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
+
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: child
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js
index 562d7fdf1..fd95a3234 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-24.js
@@ -9,20 +9,20 @@ description: >
non-integer, ensure truncation occurs in the proper direction
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 10: 11,
- 11: 12,
- length: 11.5
-};
+ var obj = {
+ 0: 9,
+ 10: 11,
+ 11: 12,
+ length: 11.5
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js
index e1916896b..ef10bed26 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-25.js
@@ -7,20 +7,20 @@ es5id: 15.4.4.17-3-25
description: Array.prototype.some - value of 'length' is a negative non-integer
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: -4294967294.5
-};
+ var obj = {
+ 0: 9,
+ 1: 11,
+ 2: 12,
+ length: -4294967294.5
+ };
assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js
index b47063417..31d402e2d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-28.js
@@ -7,17 +7,17 @@ es5id: 15.4.4.17-3-28
description: Array.prototype.some - value of 'length' is boundary value (2^32)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 12,
- length: 4294967296
-};
+ var obj = {
+ 0: 12,
+ length: 4294967296
+ };
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js
index 132a0ec3b..eeca40a0b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-29.js
@@ -9,19 +9,19 @@ description: >
1)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 4294967297
-};
+ var obj = {
+ 0: 11,
+ 1: 12,
+ length: 4294967297
+ };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert(Array.prototype.some.call(obj, callbackfn2), 'Array.prototype.some.call(obj, callbackfn2) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js
index 97637f6a7..769953764 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-3.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-3-3
description: Array.prototype.some - value of 'length' is a number (value is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: 0
-};
+ var obj = { 0: 11, length: 0 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js
index 3a35aa149..cfcc27fc3 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-4.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-3-4
description: Array.prototype.some - value of 'length' is a number (value is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: +0
-};
+ var obj = { 0: 11, length: +0 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js
index 2eddf9891..27d31dea7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-5.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-3-5
description: Array.prototype.some - value of 'length' is a number (value is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: -0
-};
+ var obj = { 0: 11, length: -0 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js
index c53b2808f..053e096a9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-6.js
@@ -9,20 +9,15 @@ description: >
positive)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: 2
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: 2 };
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js
index fcfdbecf2..31de3aa25 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-7.js
@@ -9,20 +9,15 @@ description: >
negative)
---*/
-function callbackfn1(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn1(val, idx, obj) {
+ return val > 10;
+ }
-function callbackfn2(val, idx, obj) {
- return val > 11;
-}
+ function callbackfn2(val, idx, obj) {
+ return val > 11;
+ }
-var obj = {
- 0: 9,
- 1: 11,
- 2: 12,
- length: -4294967294
-};
+ var obj = { 0: 9, 1: 11, 2: 12, length: -4294967294 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn1), false, 'Array.prototype.some.call(obj, callbackfn1)');
assert.sameValue(Array.prototype.some.call(obj, callbackfn2), false, 'Array.prototype.some.call(obj, callbackfn2)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js
index 6946b1899..f5496a481 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-8.js
@@ -9,17 +9,14 @@ description: >
Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: Infinity
-};
+ var obj = { 0: 11, length: Infinity };
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js
index c0b2c5c15..c65f458c0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-3-9.js
@@ -9,17 +9,14 @@ description: >
-Infinity)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- length: -Infinity
-};
+ var obj = { 0: 11, length: -Infinity };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js
index 30976864e..9ff74cac0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-1
description: Array.prototype.some throws TypeError if callbackfn is undefined
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some();
+ arr.some();
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js
index 3300ce532..345f1474c 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-10.js
@@ -9,18 +9,15 @@ description: >
was thrown by step 2
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- throw new Test262Error();
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new Test262Error();
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.some.call(obj, undefined);
+ Array.prototype.some.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js
index d0c7e6a74..0eec6e6c3 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-11.js
@@ -9,22 +9,19 @@ description: >
was thrown by step 3
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- throw new Test262Error();
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new Test262Error();
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(Test262Error, function() {
- Array.prototype.some.call(obj, undefined);
+ Array.prototype.some.call(obj, undefined);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js
index 156090da3..a7d7c1f70 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-12.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-4-12
description: Array.prototype.some - 'callbackfn' is a function
---*/
-function callbackfn(val, idx, obj) {
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10;
+ }
assert([9, 11].some(callbackfn), '[9, 11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js
index c46be1588..ef372ed69 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-15.js
@@ -9,26 +9,26 @@ description: >
passing undefined for callbackfn
---*/
-var obj = {};
-var lengthAccessed = false;
-var loopAccessed = false;
+ var obj = { };
+ var lengthAccessed = false;
+ var loopAccessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
-});
-Object.defineProperty(obj, "0", {
- get: function() {
- loopAccessed = true;
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.some.call(obj);
+ Array.prototype.some.call(obj);
});
assert(lengthAccessed, 'lengthAccessed !== true');
assert.sameValue(loopAccessed, false, 'loopAccessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js
index 260caee75..8d200ecce 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-2.js
@@ -9,7 +9,7 @@ description: >
unreferenced
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(ReferenceError, function() {
- arr.some(foo);
+ arr.some(foo);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js
index 74b4e4acc..79c8e45fd 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-3.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-3
description: Array.prototype.some throws TypeError if callbackfn is null
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some(null);
+ arr.some(null);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js
index ef357be26..9530cb781 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-4.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-4
description: Array.prototype.some throws TypeError if callbackfn is boolean
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some(true);
+ arr.some(true);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js
index 7a281a229..ac6df1f87 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-5.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-5
description: Array.prototype.some throws TypeError if callbackfn is number
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some(5);
+ arr.some(5);
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js
index 7339b3cc4..530cfb4e1 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-6.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-4-6
description: Array.prototype.some throws TypeError if callbackfn is string
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some("abc");
+ arr.some("abc");
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js
index 06105fd1e..be4508eeb 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-7.js
@@ -9,7 +9,7 @@ description: >
without a Call internal method
---*/
-var arr = new Array(10);
+ var arr = new Array(10);
assert.throws(TypeError, function() {
- arr.some(new Object());
+ arr.some(new Object());
});
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js
index 4735534bd..ea4f92934 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-8.js
@@ -9,21 +9,18 @@ description: >
when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- accessed = true;
- return 2;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.some.call(obj, null);
+ Array.prototype.some.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js
index 7e7773359..ba37bfec5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-4-9.js
@@ -9,25 +9,22 @@ description: >
when an exception occurs
---*/
-var obj = {
- 0: 11,
- 1: 12
-};
+ var obj = { 0: 11, 1: 12 };
-var accessed = false;
+ var accessed = false;
-Object.defineProperty(obj, "length", {
- get: function() {
- return {
- toString: function() {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
-});
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
assert.throws(TypeError, function() {
- Array.prototype.some.call(obj, null);
+ Array.prototype.some.call(obj, null);
});
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js
index f94bc04c6..737db1039 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-1-s.js
@@ -8,14 +8,14 @@ description: Array.prototype.some - thisArg not passed to strict callbackfn
flags: [noStrict]
---*/
-var innerThisCorrect = false;
+ var innerThisCorrect = false;
-function callbackfn(val, idx, obj) {
- "use strict";
- innerThisCorrect = this === undefined;
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
-[1].some(callbackfn);
+ [1].some(callbackfn);
assert(innerThisCorrect, 'innerThisCorrect !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js
index 9effb1bb1..bbbac58db 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-1.js
@@ -9,13 +9,13 @@ flags: [noStrict]
---*/
(function() {
- this._15_4_4_17_5_1 = false;
- var _15_4_4_17_5_1 = true;
+ this._15_4_4_17_5_1 = false;
+ var _15_4_4_17_5_1 = true;
- function callbackfn(val, idx, obj) {
- return this._15_4_4_17_5_1;
- }
- var arr = [1];
+ function callbackfn(val, idx, obj) {
+ return this._15_4_4_17_5_1;
+ }
+ var arr = [1];
- assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
+assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
})();
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js
index 7b9f0b960..b30a41be9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-10.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-10
description: Array.prototype.some - Array Object can be used as thisArg
---*/
-var objArray = [];
+ var objArray = [];
-function callbackfn(val, idx, obj) {
- return this === objArray;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objArray;
+ }
assert([11].some(callbackfn, objArray), '[11].some(callbackfn, objArray) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js
index 19c1305d5..03e69a4ae 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-11.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-11
description: Array.prototype.some - String object can be used as thisArg
---*/
-var objString = new String();
+ var objString = new String();
-function callbackfn(val, idx, obj) {
- return this === objString;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objString;
+ }
assert([11].some(callbackfn, objString), '[11].some(callbackfn, objString) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js
index 7f908ab7f..79f3e73ee 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-12.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-12
description: Array.prototype.some - Boolean object can be used as thisArg
---*/
-var objBoolean = new Boolean();
+ var objBoolean = new Boolean();
-function callbackfn(val, idx, obj) {
- return this === objBoolean;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objBoolean;
+ }
assert([11].some(callbackfn, objBoolean), '[11].some(callbackfn, objBoolean) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js
index d5d94de65..ec80e4d63 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-13.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-13
description: Array.prototype.some - Number object can be used as thisArg
---*/
-var objNumber = new Number();
+ var objNumber = new Number();
-function callbackfn(val, idx, obj) {
- return this === objNumber;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objNumber;
+ }
assert([11].some(callbackfn, objNumber), '[11].some(callbackfn, objNumber) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js
index 93e4deb57..41ce9be97 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-14.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-14
description: Array.prototype.some - the Math object can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === Math;
-}
+ function callbackfn(val, idx, obj) {
+ return this === Math;
+ }
assert([11].some(callbackfn, Math), '[11].some(callbackfn, Math) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js
index 145681226..9bca4cb95 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-15.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-15
description: Array.prototype.some - Date object can be used as thisArg
---*/
-var objDate = new Date();
+ var objDate = new Date();
-function callbackfn(val, idx, obj) {
- return this === objDate;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objDate;
+ }
assert([11].some(callbackfn, objDate), '[11].some(callbackfn, objDate) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js
index e9a56f636..122b6abf6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-16.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-16
description: Array.prototype.some - RegExp object can be used as thisArg
---*/
-var objRegExp = new RegExp();
+ var objRegExp = new RegExp();
-function callbackfn(val, idx, obj) {
- return this === objRegExp;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objRegExp;
+ }
assert([11].some(callbackfn, objRegExp), '[11].some(callbackfn, objRegExp) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js
index 27ec167f4..344f84d9e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-17.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-17
description: Array.prototype.some - the JSON object can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === JSON;
-}
+ function callbackfn(val, idx, obj) {
+ return this === JSON;
+ }
assert([11].some(callbackfn, JSON), '[11].some(callbackfn, JSON) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js
index 338b3c0dd..5d6a3dccd 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-18.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-18
description: Array.prototype.some - Error object can be used as thisArg
---*/
-var objError = new RangeError();
+ var objError = new RangeError();
-function callbackfn(val, idx, obj) {
- return this === objError;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objError;
+ }
assert([11].some(callbackfn, objError), '[11].some(callbackfn, objError) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js
index 03815a02d..6e702f470 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-19.js
@@ -7,14 +7,14 @@ es5id: 15.4.4.17-5-19
description: Array.prototype.some - the Arguments object can be used as thisArg
---*/
-var arg;
+ var arg;
-function callbackfn(val, idx, obj) {
- return this === arg;
-}
+ function callbackfn(val, idx, obj) {
+ return this === arg;
+ }
-(function fun() {
- arg = arguments;
-}(1, 2, 3));
+ (function fun() {
+ arg = arguments;
+ }(1, 2, 3));
assert([11].some(callbackfn, arg), '[11].some(callbackfn, arg) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js
index e0142b343..76776201d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-2.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.17-5-2
description: Array.prototype.some - thisArg is Object
---*/
-var res = false;
-var o = new Object();
-o.res = true;
+ var res = false;
+ var o = new Object();
+ o.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.some(callbackfn, o), true, 'arr.some(callbackfn, o)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js
index e80fe9b22..974c7f0e8 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-21.js
@@ -8,9 +8,8 @@ description: Array.prototype.some - the global object can be used as thisArg
---*/
var global = this;
-
-function callbackfn(val, idx, obj) {
- return this === global;
-}
+ function callbackfn(val, idx, obj) {
+ return this === global;
+ }
assert([11].some(callbackfn, this), '[11].some(callbackfn, global) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js
index 448098312..e61e97a4a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-22.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-22
description: Array.prototype.some - boolean primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === false;
+ }
assert([11].some(callbackfn, false), '[11].some(callbackfn, false) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js
index a5f030faf..3ded5ff25 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-23.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-23
description: Array.prototype.some - number primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === 101;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === 101;
+ }
assert([11].some(callbackfn, 101), '[11].some(callbackfn, 101) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js
index a1d268d09..5daa055f1 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-24.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-24
description: Array.prototype.some - string primitive can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === "abc";
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === "abc";
+ }
assert([11].some(callbackfn, "abc"), '[11].some(callbackfn, "abc") !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js
index 2c7c60a5a..a20dcd8ad 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-25.js
@@ -8,15 +8,15 @@ description: Array.prototype.some - thisArg not passed
flags: [noStrict]
---*/
-function innerObj() {
- this._15_4_4_17_5_25 = true;
- var _15_4_4_17_5_25 = false;
+ function innerObj() {
+ this._15_4_4_17_5_25 = true;
+ var _15_4_4_17_5_25 = false;
- function callbackfn(val, idx, obj) {
- return this._15_4_4_17_5_25;
- }
- var arr = [1];
- this.retVal = !arr.some(callbackfn);
-}
+ function callbackfn(val, idx, obj) {
+ return this._15_4_4_17_5_25;
+ }
+ var arr = [1];
+ this.retVal = !arr.some(callbackfn);
+ }
assert(new innerObj().retVal, 'new innerObj().retVal !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js
index 6e5d2f245..69a2180cc 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-3.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.17-5-3
description: Array.prototype.some - thisArg is Array
---*/
-var res = false;
-var a = new Array();
-a.res = true;
+ var res = false;
+ var a = new Array();
+ a.res = true;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
-
-var arr = [1];
+ var arr = [1];
assert.sameValue(arr.some(callbackfn, a), true, 'arr.some(callbackfn, a)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js
index 32e813992..95351bc9a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-4.js
@@ -9,16 +9,15 @@ description: >
template(prototype)
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.prototype.res = true;
+ var f = new foo();
+ var arr = [1];
-function foo() {}
-foo.prototype.res = true;
-var f = new foo();
-var arr = [1];
-
-assert.sameValue(arr.some(callbackfn, f), true, 'arr.some(callbackfn,f)');
+assert.sameValue(arr.some(callbackfn,f), true, 'arr.some(callbackfn,f)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js
index 6b946e865..383181643 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-5.js
@@ -7,16 +7,15 @@ es5id: 15.4.4.17-5-5
description: Array.prototype.some - thisArg is object from object template
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ var f = new foo();
+ f.res = true;
+ var arr = [1];
-function foo() {}
-var f = new foo();
-f.res = true;
-var arr = [1];
-
-assert.sameValue(arr.some(callbackfn, f), true, 'arr.some(callbackfn,f)');
+assert.sameValue(arr.some(callbackfn,f), true, 'arr.some(callbackfn,f)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js
index e0d074917..f7213225c 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-6.js
@@ -7,15 +7,14 @@ es5id: 15.4.4.17-5-6
description: Array.prototype.some - thisArg is function
---*/
-var res = false;
+ var res = false;
+ function callbackfn(val, idx, obj)
+ {
+ return this.res;
+ }
-function callbackfn(val, idx, obj)
-{
- return this.res;
-}
+ function foo(){}
+ foo.res = true;
+ var arr = [1];
-function foo() {}
-foo.res = true;
-var arr = [1];
-
-assert.sameValue(arr.some(callbackfn, foo), true, 'arr.some(callbackfn,foo)');
+assert.sameValue(arr.some(callbackfn,foo), true, 'arr.some(callbackfn,foo)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js
index ae6c1fd3d..f4198a8b0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-7.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-5-7
description: Array.prototype.some - built-in functions can be used as thisArg
---*/
-function callbackfn(val, idx, obj) {
- return this === eval;
-}
+ function callbackfn(val, idx, obj) {
+ return this === eval;
+ }
assert([11].some(callbackfn, eval), '[11].some(callbackfn, eval) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js
index 155ab3fd2..501906bf9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-5-9.js
@@ -7,10 +7,10 @@ es5id: 15.4.4.17-5-9
description: Array.prototype.some - Function Object can be used as thisArg
---*/
-var objFunction = function() {};
+ var objFunction = function () { };
-function callbackfn(val, idx, obj) {
- return this === objFunction;
-}
+ function callbackfn(val, idx, obj) {
+ return this === objFunction;
+ }
assert([11].some(callbackfn, objFunction), '[11].some(callbackfn, objFunction) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js
index 081c7a788..5935681cb 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-1.js
@@ -9,19 +9,19 @@ description: >
it is called
---*/
-var calledForThree = false;
+ var calledForThree = false;
-function callbackfn(val, idx, obj)
-{
- arr[2] = 3;
- if (val !== 3)
- calledForThree = true;
+ function callbackfn(val, idx, obj)
+ {
+ arr[2] = 3;
+ if(val !== 3)
+ calledForThree = true;
- return false;
-}
+ return false;
+ }
-var arr = [1, 2, , 4, 5];
+ var arr = [1,2,,4,5];
-var val = arr.some(callbackfn);
+ var val = arr.some(callbackfn);
assert(calledForThree, 'calledForThree !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js
index 117aeb738..8429933e0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-2.js
@@ -9,16 +9,16 @@ description: >
after it is called
---*/
-function callbackfn(val, idx, obj)
-{
- arr[4] = 6;
- if (val < 6)
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ arr[4] = 6;
+ if(val < 6)
+ return false;
+ else
+ return true;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.some(callbackfn), true, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js
index 8b193f933..d27cbb211 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-3.js
@@ -9,16 +9,16 @@ description: >
it is called
---*/
-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;
+ }
-var arr = [1, 2, 3, 4, 5];
+ var arr = [1,2,3,4,5];
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js
index 7d683efcf..5b060256f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-4.js
@@ -9,16 +9,16 @@ description: >
Array.length is decreased
---*/
-function callbackfn(val, idx, obj)
-{
- arr.length = 3;
- if (val < 4)
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ arr.length = 3;
+ if(val < 4)
+ return false;
+ else
+ return true;
+ }
-var arr = [1, 2, 3, 4, 6];
+ var arr = [1,2,3,4,6];
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js
index 19fbb07fc..89a9a1770 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-5.js
@@ -9,18 +9,18 @@ description: >
sparse array
---*/
-function callbackfn(val, idx, obj)
-{
- arr[1000] = 5;
- if (val < 5)
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ arr[1000] = 5;
+ if(val < 5)
+ return false;
+ else
+ return true;
+ }
-var arr = new Array(10);
-arr[1] = 1;
-arr[2] = 2;
+ var arr = new Array(10);
+ arr[1] = 1;
+ arr[2] = 2;
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js
index a5f38a483..e8da5fae6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-6.js
@@ -9,20 +9,20 @@ description: >
call when same index is also present in prototype
---*/
-function callbackfn(val, idx, obj)
-{
- delete arr[4];
- if (val < 5)
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ delete arr[4];
+ if(val < 5)
+ return false;
+ else
+ return true;
+ }
-Array.prototype[4] = 5;
-var arr = [1, 2, 3, 4, 5];
+ Array.prototype[4] = 5;
+ var arr = [1,2,3,4,5];
-var res = arr.some(callbackfn);
-delete Array.prototype[4];
+ var res = arr.some(callbackfn) ;
+ delete Array.prototype[4];
assert.sameValue(res, true, 'res');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js
index 2712e0c85..e257955c9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-8.js
@@ -7,18 +7,14 @@ es5id: 15.4.4.17-7-8
description: Array.prototype.some - no observable effects occur if length is 0
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return val > 10;
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 0
-};
+ var obj = { 0: 11, 1: 12, length: 0 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js
index d07c519b0..312351df0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-9.js
@@ -9,26 +9,22 @@ description: >
of iterations
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- 2: 12,
- length: 3
-};
+ var obj = { 0: 9, 2: 12, length: 3 };
-Object.defineProperty(obj, "1", {
- get: function() {
- obj.length = 2;
- return 8;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ obj.length = 2;
+ return 8;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
assert.sameValue(called, 3, 'called');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js
index b6b52b099..997bac982 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-1.js
@@ -9,16 +9,15 @@ description: >
been assigned values
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return false;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return false;
-}
-
-var arr = new Array(10);
-arr[1] = undefined;
-arr.some(callbackfn);
+ var arr = new Array(10);
+ arr[1] = undefined;
+ arr.some(callbackfn);
assert.sameValue(callCnt, 1, 'callCnt');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js
index 008b55632..acddf79b8 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-10.js
@@ -9,26 +9,22 @@ description: >
prototype index property not to be visited on an Array-like Object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+ }
+ var arr = { 2: 2, length: 20 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
-}
-var arr = {
- 2: 2,
- length: 20
-};
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Object.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Object.prototype[1];
- return 0;
- },
- configurable: true
-});
-
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js
index 3e457ac48..e7f1170a9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-11.js
@@ -9,23 +9,22 @@ description: >
prototype index property not to be visited on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+ }
+ var arr = [0, , 2];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
-}
-var arr = [0, , 2];
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
-});
-
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js
index 2eeb1e90c..e575c9fd6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-12.js
@@ -10,28 +10,23 @@ description: >
Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return true;
- } else {
- return false;
- }
-}
-var arr = {
- 0: 0,
- 1: 111,
- 2: 2,
- length: 10
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var arr = { 0: 0, 1: 111, 2: 2, length: 10 };
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Object.prototype[1] = 1;
+ Object.prototype[1] = 1;
assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js
index c15b1fade..4f1afb3af 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-13.js
@@ -9,23 +9,23 @@ description: >
property causes prototype index property to be visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return true;
- } else {
- return false;
- }
-}
-var arr = [0, 111, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var arr = [0, 111, 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
-Array.prototype[1] = 1;
+ Array.prototype[1] = 1;
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js
index ebcb32a56..db0bf87e4 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-14.js
@@ -9,21 +9,20 @@ description: >
property not to be visited
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 3;
+ }
+ var arr = [0, 1, 2, "last"];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 3;
-}
-var arr = [0, 1, 2, "last"];
-
-Object.defineProperty(arr, "0", {
- get: function() {
- arr.length = 3;
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr.length = 3;
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js
index 69f8f9a6c..7c4647504 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-15.js
@@ -9,28 +9,28 @@ description: >
property causes prototype index property to be visited
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "prototype") {
- return true;
- } else {
- return false;
- }
-}
-var arr = [0, 1, 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "prototype") {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var arr = [0, 1, 2];
-Object.defineProperty(Array.prototype, "2", {
- get: function() {
- return "prototype";
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js
index 86c3b3c00..21fb924b0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-16.js
@@ -10,29 +10,29 @@ description: >
flags: [noStrict]
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "unconfigurable") {
- return true;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "unconfigurable") {
+ return true;
+ } else {
+ return false;
+ }
+ }
-var arr = [0, 1, 2];
+ var arr = [0, 1, 2];
-Object.defineProperty(arr, "2", {
- get: function() {
- return "unconfigurable";
- },
- configurable: false
-});
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- arr.length = 2;
- return 1;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js
index abf9b78b9..e1dedd411 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-2.js
@@ -7,22 +7,22 @@ es5id: 15.4.4.17-7-b-2
description: Array.prototype.some - added properties in step 2 are visible here
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 2 && val === "length") {
- return true;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 2 && val === "length") {
+ return true;
+ } else {
+ return false;
+ }
+ }
-var arr = {};
+ var arr = { };
-Object.defineProperty(arr, "length", {
- get: function() {
- arr[2] = "length";
- return 3;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ arr[2] = "length";
+ return 3;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js
index 2193d2469..fa54b0595 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-3.js
@@ -9,24 +9,20 @@ description: >
here
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 2;
+ }
+ var arr = { 2: 6.99, 8: 19};
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 2;
-}
-var arr = {
- 2: 6.99,
- 8: 19
-};
-
-Object.defineProperty(arr, "length", {
- get: function() {
- delete arr[2];
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "length", {
+ get: function () {
+ delete arr[2];
+ return 10;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js
index 8b02ca336..2f3a8122d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-4.js
@@ -9,29 +9,27 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return true;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return true;
+ } else {
+ return false;
+ }
+ }
-var arr = {
- length: 2
-};
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js
index ab0a8e637..c808200a9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-5.js
@@ -9,27 +9,27 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 1) {
- return true;
- } else {
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 1) {
+ return true;
+ } else {
+ return false;
+ }
+ }
-var arr = [0, , 2];
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(arr, "1", {
- get: function() {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js
index 804282bc1..b57354dc5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-6.js
@@ -9,28 +9,26 @@ description: >
current position are visited on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return true;
- } else {
- return false;
- }
-}
-var arr = {
- length: 2
-};
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var arr = { length: 2 };
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Object.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(arr, callbackfn), 'Array.prototype.some.call(arr, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js
index 921e832ae..5dd76771b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-7.js
@@ -9,26 +9,26 @@ description: >
current position are visited on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1 && val === 6.99) {
- return true;
- } else {
- return false;
- }
-}
-var arr = [0, , 2];
+ function callbackfn(val, idx, obj) {
+ if (idx === 1 && val === 6.99) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+ var arr = [0, , 2];
-Object.defineProperty(arr, "0", {
- get: function() {
- Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js
index 0ec7f3393..b99ca8154 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-8.js
@@ -9,30 +9,27 @@ description: >
not to be visited on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+ }
+ var arr = { length: 2 };
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
-}
-var arr = {
- length: 2
-};
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return 6.99;
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(Array.prototype.some.call(arr, callbackfn), false, 'Array.prototype.some.call(arr, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js
index 42272384d..389a129ad 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-b-9.js
@@ -9,28 +9,27 @@ description: >
not to be visited on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return idx === 1;
+ }
+ var arr = [1, 2];
-function callbackfn(val, idx, obj) {
- accessed = true;
- return idx === 1;
-}
-var arr = [1, 2];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "1", {
- get: function() {
- return "6.99";
- },
- configurable: true
-});
-
-Object.defineProperty(arr, "0", {
- get: function() {
- delete arr[1];
- return 0;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js
index 4f4115e58..7d22a36d5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-1.js
@@ -9,18 +9,15 @@ description: >
property on an Array-like object
---*/
-var kValue = {};
+ var kValue = {};
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
-var obj = {
- 5: kValue,
- length: 100
-};
+ var obj = { 5: kValue, length: 100 };
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js
index 85226cf16..32488b488 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-10.js
@@ -9,22 +9,22 @@ description: >
property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 10) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 10) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "10", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "10", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js
index f0c2c4a15..bbd62f9dc 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-11.js
@@ -10,30 +10,28 @@ description: >
Array-like object
---*/
-var kValue = "abc";
-
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
-
-var proto = {
- 1: 6
-};
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 10;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ var kValue = "abc";
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var proto = { 1: 6 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 10;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js
index 753d317a6..94c83d554 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-12.js
@@ -9,23 +9,23 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Array.prototype[1] = 100;
-Object.defineProperty(arr, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Array.prototype[1] = 100;
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js
index e358b560c..329d30001 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-13.js
@@ -10,36 +10,36 @@ description: >
Array-like object
---*/
-var kValue = "abc";
-
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "1", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 10;
-
-Object.defineProperty(child, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ var kValue = "abc";
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 10;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js
index bdb2d85ab..b96e60a53 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-14.js
@@ -9,28 +9,28 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
-var arr = [];
-Object.defineProperty(arr, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ var arr = [];
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return 10;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js
index f357611b9..7f862aaad 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-15.js
@@ -9,28 +9,28 @@ description: >
accessor property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {};
+ var proto = {};
-Object.defineProperty(proto, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 20;
+ var child = new Con();
+ child.length = 20;
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js
index f610a757f..ee3cf2adb 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-16.js
@@ -9,20 +9,20 @@ description: >
accessor property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === kValue;
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "1", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert([, , ].some(callbackfn), '[, , ].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js
index f3206fd63..b4113bdbc 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-17.js
@@ -9,19 +9,17 @@ description: >
property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js
index 55f64f688..41742e981 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-18.js
@@ -9,18 +9,18 @@ description: >
property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js
index 859dc4022..7d45a5523 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-19.js
@@ -10,21 +10,19 @@ description: >
accessor property on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var obj = {
- length: 2
-};
-Object.defineProperty(obj, "1", {
- set: function() {},
- configurable: true
-});
+ var obj = { length: 2 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
-Object.prototype[1] = 10;
+ Object.prototype[1] = 10;
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js
index 543d15db4..cd3c2ced7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-2.js
@@ -9,13 +9,13 @@ description: >
property on an Array
---*/
-var kValue = {};
+ var kValue = {};
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return kValue === val;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return kValue === val;
+ }
+ return false;
+ }
assert([kValue].some(callbackfn), '[kValue].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js
index d39314005..320cb9899 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-20.js
@@ -10,20 +10,20 @@ description: >
accessor property on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var arr = [];
+ var arr = [];
-Object.defineProperty(arr, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ set: function () { },
+ configurable: true
+ });
-Array.prototype[0] = 100;
+ Array.prototype[0] = 100;
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js
index 3365018fc..18fc2abe1 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-21.js
@@ -9,23 +9,23 @@ description: >
accessor property without a get function on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-var proto = {};
-Object.defineProperty(proto, "1", {
- set: function() {},
- configurable: true
-});
+ var proto = {};
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 2;
+ var child = new Con();
+ child.length = 2;
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js
index 5635c65aa..a6086840b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-22.js
@@ -9,16 +9,16 @@ description: >
accessor property without a get function on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return typeof val === "undefined";
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return typeof val === "undefined";
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "0", {
- set: function() {},
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ set: function () { },
+ configurable: true
+ });
assert([, ].some(callbackfn), '[, ].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js
index fe7a12aad..87a76dd0b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-25.js
@@ -10,15 +10,15 @@ description: >
less than number of parameters)
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === 11;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === 11;
+ }
+ return false;
+ }
-var func = function(a, b) {
- return Array.prototype.some.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.some.call(arguments, callbackfn);
+ };
assert(func(11), 'func(11) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js
index 8a0dd4b0f..626c4fec9 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-26.js
@@ -10,24 +10,24 @@ description: >
number of parameters)
---*/
-var firstResult = false;
-var secondResult = false;
+ var firstResult = false;
+ var secondResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- firstResult = (val === 11);
- return false;
- } else if (idx === 1) {
- secondResult = (val === 9);
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ firstResult = (val === 11);
+ return false;
+ } else if (idx === 1) {
+ secondResult = (val === 9);
+ return false;
+ } else {
+ return true;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.some.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.some.call(arguments, callbackfn);
+ };
assert.sameValue(func(11, 9), false, 'func(11, 9)');
assert(firstResult, 'firstResult !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js
index f54a10f05..de0a66b25 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js
@@ -10,28 +10,28 @@ description: >
greater than number of parameters)
---*/
-var firstResult = false;
-var secondResult = false;
-var thirdResult = false;
+ var firstResult = false;
+ var secondResult = false;
+ var thirdResult = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- firstResult = (val === 11);
- return false;
- } else if (idx === 1) {
- secondResult = (val === 12);
- return false;
- } else if (idx === 2) {
- thirdResult = (val === 9);
- return false;
- } else {
- return true;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ firstResult = (val === 11);
+ return false;
+ } else if (idx === 1) {
+ secondResult = (val === 12);
+ return false;
+ } else if (idx === 2) {
+ thirdResult = (val === 9);
+ return false;
+ } else {
+ return true;
+ }
+ }
-var func = function(a, b) {
- return Array.prototype.some.call(arguments, callbackfn);
-};
+ var func = function (a, b) {
+ return Array.prototype.some.call(arguments, callbackfn);
+ };
assert.sameValue(func(11, 12, 9), false, 'func(11, 12, 9)');
assert(firstResult, 'firstResult !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js
index 8e423c615..da8a40f1e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-28.js
@@ -9,32 +9,32 @@ description: >
iterations is observed on an Array
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === 12;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === 12;
+ }
+ return false;
+ }
-var arr = [];
-var helpVerifyVar = 11;
+ var arr = [];
+ var helpVerifyVar = 11;
-Object.defineProperty(arr, "1", {
- get: function() {
- return helpVerifyVar;
- },
- set: function(args) {
- helpVerifyVar = args;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return helpVerifyVar;
+ },
+ set: function (args) {
+ helpVerifyVar = args;
+ },
+ configurable: true
+ });
-Object.defineProperty(arr, "0", {
- get: function() {
- arr[1] = 12;
- return 9;
- },
- configurable: true
-});
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ arr[1] = 12;
+ return 9;
+ },
+ configurable: true
+ });
assert(arr.some(callbackfn), 'arr.some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js
index ac802b112..416660ba0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-29.js
@@ -9,34 +9,32 @@ description: >
iterations on an Array-like object
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 1) {
- return val === 12;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 1) {
+ return val === 12;
+ }
+ return false;
+ }
-var obj = {
- length: 2
-};
-var helpVerifyVar = 11;
+ var obj = { length: 2 };
+ var helpVerifyVar = 11;
-Object.defineProperty(obj, "1", {
- get: function() {
- return helpVerifyVar;
- },
- set: function(args) {
- helpVerifyVar = args;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return helpVerifyVar;
+ },
+ set: function (args) {
+ helpVerifyVar = args;
+ },
+ configurable: true
+ });
-Object.defineProperty(obj, "0", {
- get: function() {
- obj[1] = 12;
- return 11;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ obj[1] = 12;
+ return 11;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js
index 055231576..e9b625ee7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-3.js
@@ -10,24 +10,22 @@ description: >
Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 5) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 5) {
+ return val === kValue;
+ }
+ return false;
+ }
-var proto = {
- 5: 100
-};
+ var proto = { 5: 100 };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child[5] = kValue;
-child.length = 10;
+ var child = new Con();
+ child[5] = kValue;
+ child.length = 10;
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js
index 4ce67a0b6..9803d3576 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-30.js
@@ -9,25 +9,22 @@ description: >
terminate iteration on an Array-like object
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- accessed = true;
- }
- return true;
-}
-
-var obj = {
- length: 20
-};
-Object.defineProperty(obj, "1", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var obj = { length: 20 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- Array.prototype.some.call(obj, callbackfn);
+ Array.prototype.some.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js
index 9d9cc00c1..5fe12afb7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-31.js
@@ -9,24 +9,23 @@ description: >
terminate iteration on an Array
---*/
-var accessed = false;
+ var accessed = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 0) {
+ accessed = true;
+ }
+ return true;
+ }
-function callbackfn(val, idx, obj) {
- if (idx > 0) {
- accessed = true;
- }
- return true;
-}
-
-var arr = [];
-arr[10] = 100;
-Object.defineProperty(arr, "0", {
- get: function() {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
-});
+ var arr = [];
+ arr[10] = 100;
+ Object.defineProperty(arr, "0", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
assert.throws(RangeError, function() {
- arr.some(callbackfn);
+ arr.some(callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js
index 64dd495a9..8312a515b 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-4.js
@@ -9,15 +9,15 @@ description: >
property that overrides an inherited data property on an Array
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-Array.prototype[0] = 11;
+ Array.prototype[0] = 11;
assert([kValue].some(callbackfn), '[kValue].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js
index d8fcfaf35..5d2c92a76 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-5.js
@@ -10,32 +10,32 @@ description: >
Array-like object
---*/
-var kValue = 1000;
-
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
-
-var proto = {};
-
-Object.defineProperty(proto, "0", {
- get: function() {
- return 5;
- },
- configurable: true
-});
-
-var Con = function() {};
-Con.prototype = proto;
-
-var child = new Con();
-child.length = 2;
-Object.defineProperty(child, "0", {
- value: kValue,
- configurable: true
-});
+ var kValue = 1000;
+
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 5;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: kValue,
+ configurable: true
+ });
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js
index ef5da1409..19eece565 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-6.js
@@ -9,20 +9,20 @@ description: >
property that overrides an inherited accessor property on an Array
---*/
-var kValue = 1000;
+ var kValue = 1000;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ return val === kValue;
+ }
+ return false;
+ }
-Object.defineProperty(Array.prototype, "0", {
- get: function() {
- return 9;
- },
- configurable: true
-});
+ Object.defineProperty(Array.prototype, "0", {
+ get: function () {
+ return 9;
+ },
+ configurable: true
+ });
assert([kValue].some(callbackfn), '[kValue].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js
index f346f9252..fe4c1e892 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-7.js
@@ -9,23 +9,21 @@ description: >
property on an Array-like object
---*/
-var kValue = 'abc';
+ var kValue = 'abc';
-function callbackfn(val, idx, obj) {
- if (5 === idx) {
- return kValue === val;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (5 === idx) {
+ return kValue === val;
+ }
+ return false;
+ }
-var proto = {
- 5: kValue
-};
+ var proto = { 5: kValue };
-var Con = function() {};
-Con.prototype = proto;
+ var Con = function () { };
+ Con.prototype = proto;
-var child = new Con();
-child.length = 10;
+ var child = new Con();
+ child.length = 10;
assert(Array.prototype.some.call(child, callbackfn), 'Array.prototype.some.call(child, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js
index fb71d4fc7..7fdcc8816 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-8.js
@@ -9,15 +9,15 @@ description: >
property on an Array
---*/
-var kValue = {};
+ var kValue = {};
-function callbackfn(val, idx, obj) {
- if (0 === idx) {
- return kValue === val;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (0 === idx) {
+ return kValue === val;
+ }
+ return false;
+ }
-Array.prototype[0] = kValue;
+ Array.prototype[0] = kValue;
assert([, ].some(callbackfn), '[, ].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js
index 208143274..fe3819ddd 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-9.js
@@ -9,24 +9,22 @@ description: >
property on an Array-like object
---*/
-var kValue = "abc";
+ var kValue = "abc";
-function callbackfn(val, idx, obj) {
- if (idx === 10) {
- return val === kValue;
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 10) {
+ return val === kValue;
+ }
+ return false;
+ }
-var obj = {
- length: 20
-};
+ var obj = { length: 20 };
-Object.defineProperty(obj, "10", {
- get: function() {
- return kValue;
- },
- configurable: true
-});
+ Object.defineProperty(obj, "10", {
+ get: function () {
+ return kValue;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js
index c865faae2..5d83fff70 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-1.js
@@ -7,15 +7,15 @@ es5id: 15.4.4.17-7-c-ii-1
description: Array.prototype.some - callbackfn called with correct parameters
---*/
-function callbackfn(val, idx, obj)
-{
- if (obj[idx] === val)
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ if(obj[idx] === val)
+ return false;
+ else
+ return true;
+ }
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js
index 13301777b..b7bbd6e84 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-10.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-10
description: Array.prototype.some - callbackfn is called with 1 formal parameter
---*/
-function callbackfn(val) {
- return val > 10;
-}
+ function callbackfn(val) {
+ return val > 10;
+ }
assert([11, 12].some(callbackfn), '[11, 12].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js
index 3bf00f445..c67f16452 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-11.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-11
description: Array.prototype.some - callbackfn is called with 2 formal parameter
---*/
-function callbackfn(val, idx) {
- return val > 10 && arguments[2][idx] === val;
-}
+ function callbackfn(val, idx) {
+ return val > 10 && arguments[2][idx] === val;
+ }
assert([9, 12].some(callbackfn), '[9, 12].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js
index a892afde5..9fcb899c6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-12.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-12
description: Array.prototype.some - callbackfn is called with 3 formal parameter
---*/
-function callbackfn(val, idx, obj) {
- return val > 10 && obj[idx] === val;
-}
+ function callbackfn(val, idx, obj) {
+ return val > 10 && obj[idx] === val;
+ }
assert([9, 12].some(callbackfn), '[9, 12].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js
index 6917e2635..6d61b65b6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-13.js
@@ -9,8 +9,8 @@ description: >
get parameter value
---*/
-function callbackfn() {
- return arguments[2][arguments[1]] === arguments[0];
-}
+ function callbackfn() {
+ return arguments[2][arguments[1]] === arguments[0];
+ }
assert([9, 12].some(callbackfn), '[9, 12].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js
index d6fb5d60b..c1f58e55a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-16.js
@@ -9,13 +9,10 @@ description: >
when 'T' is not an object ('T' is a boolean primitive)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === false;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === false;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert(Array.prototype.some.call(obj, callbackfn, false), 'Array.prototype.some.call(obj, callbackfn, false) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js
index 198346eb6..85a7f5b2e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-17.js
@@ -9,13 +9,10 @@ description: >
when T is not an object (T is a number primitive)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === 5;
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === 5;
+ }
-var obj = {
- 0: 11,
- length: 1
-};
+ var obj = { 0: 11, length: 1 };
assert(Array.prototype.some.call(obj, callbackfn, 5), 'Array.prototype.some.call(obj, callbackfn, 5) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js
index 9498f8079..e8edeec02 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-18.js
@@ -9,14 +9,10 @@ description: >
when T is not an object (T is a string primitive)
---*/
-function callbackfn(val, idx, obj) {
- return this.valueOf() === "hello!";
-}
+ function callbackfn(val, idx, obj) {
+ return this.valueOf() === "hello!";
+ }
-var obj = {
- 0: 11,
- 1: 9,
- length: 2
-};
+ var obj = { 0: 11, 1: 9, length: 2 };
assert(Array.prototype.some.call(obj, callbackfn, "hello!"), 'Array.prototype.some.call(obj, callbackfn, "hello!") !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js
index 4d0063e47..2e8a6f213 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-19.js
@@ -7,19 +7,14 @@ es5id: 15.4.4.17-7-c-ii-19
description: Array.prototype.some - non-indexed properties are not called
---*/
-var called = 0;
+ var called = 0;
-function callbackfn(val, idx, obj) {
- called++;
- return val === 11;
-}
+ function callbackfn(val, idx, obj) {
+ called++;
+ return val === 11;
+ }
-var obj = {
- 0: 9,
- 10: 8,
- non_index_property: 11,
- length: 20
-};
+ var obj = { 0: 9, 10: 8, non_index_property: 11, length: 20 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert.sameValue(called, 2, 'called');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js
index be738c154..0546acaa1 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-2.js
@@ -7,16 +7,16 @@ es5id: 15.4.4.17-7-c-ii-2
description: Array.prototype.some - callbackfn takes 3 arguments
---*/
-function callbackfn(val, idx, obj)
-{
- if (arguments.length === 3) //verify if callbackfn was called with 3 parameters
- return false;
- else
- return true;
-}
+ function callbackfn(val, idx, obj)
+ {
+ if(arguments.length === 3) //verify if callbackfn was called with 3 parameters
+ return false;
+ else
+ return true;
+ }
-var arr = [0, 1, true, null, new Object(), "five"];
-arr[999999] = -6.6;
+ var arr = [0,1,true,null,new Object(),"five"];
+ arr[999999] = -6.6;
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js
index 899fb2efb..342f98b38 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-20.js
@@ -9,17 +9,12 @@ description: >
(thisArg is correct)
---*/
-var thisArg = {
- threshold: 10
-};
+ var thisArg = { threshold: 10 };
-function callbackfn(val, idx, obj) {
- return this === thisArg;
-}
+ function callbackfn(val, idx, obj) {
+ return this === thisArg;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert(Array.prototype.some.call(obj, callbackfn, thisArg), 'Array.prototype.some.call(obj, callbackfn, thisArg) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js
index 31d3af3b0..2e9555012 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-21.js
@@ -9,25 +9,21 @@ description: >
(kValue is correct)
---*/
-var firstIndex = false;
-var secondIndex = false;
+ var firstIndex = false;
+ var secondIndex = false;
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- firstIndex = (val === 11);
- return false;
- }
- if (idx === 1) {
- secondIndex = (val === 12);
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ firstIndex = (val === 11);
+ return false;
+ }
+ if (idx === 1) {
+ secondIndex = (val === 12);
+ return false;
+ }
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert(firstIndex, 'firstIndex !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js
index e01efeac2..00f6a963c 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-22.js
@@ -9,25 +9,21 @@ description: >
(the index k is correct)
---*/
-var firstIndex = false;
-var secondIndex = false;
+ var firstIndex = false;
+ var secondIndex = false;
-function callbackfn(val, idx, obj) {
- if (val === 11) {
- firstIndex = (idx === 0);
- return false;
- }
- if (val === 12) {
- secondIndex = (idx === 1);
- return false;
- }
-}
+ function callbackfn(val, idx, obj) {
+ if (val === 11) {
+ firstIndex = (idx === 0);
+ return false;
+ }
+ if (val === 12) {
+ secondIndex = (idx === 1);
+ return false;
+ }
+ }
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert(firstIndex, 'firstIndex !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js
index 58c4b0ef2..b5baef317 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-23.js
@@ -9,14 +9,10 @@ description: >
(this object O is correct)
---*/
-var obj = {
- 0: 11,
- 1: 12,
- length: 2
-};
+ var obj = { 0: 11, 1: 12, length: 2 };
-function callbackfn(val, idx, o) {
- return obj === o;
-}
+ function callbackfn(val, idx, o) {
+ return obj === o;
+ }
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js
index fb0265b5e..8e784584d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-3.js
@@ -9,18 +9,17 @@ description: >
returns true
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ if(idx > 5)
+ return true;
+ else
+ return false;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- if (idx > 5)
- return true;
- else
- return false;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.some(callbackfn), true, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js
index 8642acfdb..c9c277ef3 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-4.js
@@ -9,19 +9,19 @@ description: >
order
---*/
-var arr = [0, 1, 2, 3, 4, 5];
-var lastIdx = 0;
-var called = 0;
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = 0;
+ var called = 0;
-function callbackfn(val, idx, o) {
- called++;
- if (lastIdx !== idx) {
- return true;
- } else {
- lastIdx++;
- return false;
- }
-}
+ function callbackfn(val, idx, o) {
+ called++;
+ if (lastIdx !== idx) {
+ return true;
+ } else {
+ lastIdx++;
+ return false;
+ }
+ }
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
assert.sameValue(arr.length, called, 'arr.length');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js
index 5b80ddcde..bfac0f468 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-5.js
@@ -9,21 +9,21 @@ description: >
and not prior to starting the loop
---*/
-var kIndex = [];
+ var kIndex = [];
-//By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
-function callbackfn(val, idx, obj) {
- //Each position should be visited one time, which means k is accessed one time during iterations.
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its previous index should has been visited.
- if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
- return true;
- }
- kIndex[idx] = 1;
- return false;
- } else {
- return true;
- }
-}
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(val, idx, obj) {
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its previous index should has been visited.
+ if (idx !== 0 && typeof kIndex[idx - 1] === "undefined") {
+ return true;
+ }
+ kIndex[idx] = 1;
+ return false;
+ } else {
+ return true;
+ }
+ }
assert.sameValue([11, 12, 13, 14].some(callbackfn, undefined), false, '[11, 12, 13, 14].some(callbackfn, undefined)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js
index f67b3e415..8700b391a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-6.js
@@ -7,14 +7,11 @@ es5id: 15.4.4.17-7-c-ii-6
description: Array.prototype.some - arguments to callbackfn are self consistent
---*/
-var obj = {
- 0: 11,
- length: 1
-};
-var thisArg = {};
+ var obj = { 0: 11, length: 1 };
+ var thisArg = {};
-function callbackfn() {
- return this === thisArg && arguments[0] === 11 && arguments[1] === 0 && arguments[2] === obj;
-}
+ function callbackfn() {
+ return this === thisArg && arguments[0] === 11 && arguments[1] === 0 && arguments[2] === obj;
+ }
assert(Array.prototype.some.call(obj, callbackfn, thisArg), 'Array.prototype.some.call(obj, callbackfn, thisArg) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js
index ff362211b..a8742d69f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-7.js
@@ -9,25 +9,20 @@ description: >
terminate iteration
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- if (idx > 0) {
- accessed = true;
- }
- if (idx === 0) {
- throw new Error("Exception occurred in callbackfn");
- }
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx > 0) {
+ accessed = true;
+ }
+ if (idx === 0) {
+ throw new Error("Exception occurred in callbackfn");
+ }
+ return false;
+ }
-var obj = {
- 0: 9,
- 1: 100,
- 10: 11,
- length: 20
-};
+ var obj = { 0: 9, 1: 100, 10: 11, length: 20 };
assert.throws(Error, function() {
- Array.prototype.some.call(obj, callbackfn);
+ Array.prototype.some.call(obj, callbackfn);
});
assert.sameValue(accessed, false, 'accessed');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js
index 451d0b3d3..9c926f28a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js
@@ -9,17 +9,13 @@ description: >
iterations is observed
---*/
-function callbackfn(val, idx, obj) {
- if (idx === 0) {
- obj[idx + 1] = 11;
- }
- return val > 10;
-}
+ function callbackfn(val, idx, obj) {
+ if (idx === 0) {
+ obj[idx + 1] = 11;
+ }
+ return val > 10;
+ }
-var obj = {
- 0: 9,
- 1: 8,
- length: 2
-};
+ var obj = { 0: 9, 1: 8, length: 2 };
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js
index b9c6c8eda..a49cd35a6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-9.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-ii-9
description: Array.prototype.some - callbackfn is called with 0 formal parameter
---*/
-function callbackfn() {
- return true;
-}
+ function callbackfn() {
+ return true;
+ }
assert([11, 12].some(callbackfn), '[11, 12].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js
index 4e2074291..5acfb38bf 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-1.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-7-c-iii-1
description: Array.prototype.some - return value of callbackfn is undefined
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return undefined;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return undefined;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js
index d56170844..0b26acd25 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-10.js
@@ -9,8 +9,8 @@ description: >
(value is Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ return Infinity;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js
index 1defdc292..e17e0f6ff 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-11.js
@@ -9,8 +9,8 @@ description: >
(value is -Infinity)
---*/
-function callbackfn(val, idx, obj) {
- return -Infinity;
-}
+ function callbackfn(val, idx, obj) {
+ return -Infinity;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js
index adfd8efbf..1eaab0e8a 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-12.js
@@ -9,11 +9,11 @@ description: >
(value is NaN)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return NaN;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return NaN;
+ }
assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js
index 2e20fa5ba..5690c14b4 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-13.js
@@ -9,12 +9,12 @@ description: >
string
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return "";
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return "";
+ }
assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js
index a15cbed88..c0776e90f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-14.js
@@ -9,8 +9,8 @@ description: >
string
---*/
-function callbackfn(val, idx, obj) {
- return "non-empty string";
-}
+ function callbackfn(val, idx, obj) {
+ return "non-empty string";
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js
index 1de47b0a3..37974b816 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-15.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return function() {};
-}
+ function callbackfn(val, idx, obj) {
+ return function () { };
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js
index f0b7db75d..dc3c10f89 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-16.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Array(10);
-}
+ function callbackfn(val, idx, obj) {
+ return new Array(10);
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js
index a2be9ec37..ba9188b14 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-17.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new String();
-}
+ function callbackfn(val, idx, obj) {
+ return new String();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js
index 7d273f4ec..871b4a217 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-18.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Boolean();
-}
+ function callbackfn(val, idx, obj) {
+ return new Boolean();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js
index a87205ead..0c71f5486 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-19.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new Number();
-}
+ function callbackfn(val, idx, obj) {
+ return new Number();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js
index b52aff527..19318e4b6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-2.js
@@ -7,17 +7,14 @@ es5id: 15.4.4.17-7-c-iii-2
description: Array.prototype.some - return value of callbackfn is null
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return null;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return null;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js
index 2911f87bc..481f06fc7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-20.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return Math;
-}
+ function callbackfn(val, idx, obj) {
+ return Math;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js
index 068cd5d0d..04a02a0da 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-21.js
@@ -7,8 +7,8 @@ es5id: 15.4.4.17-7-c-iii-21
description: Array.prototype.some - return value of callbackfn is a Date object
---*/
-function callbackfn(val, idx, obj) {
- return new Date();
-}
+ function callbackfn(val, idx, obj) {
+ return new Date();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js
index b71d84635..706a94dad 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-22.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new RegExp();
-}
+ function callbackfn(val, idx, obj) {
+ return new RegExp();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js
index c0316a94b..d90675753 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-23.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return JSON;
-}
+ function callbackfn(val, idx, obj) {
+ return JSON;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js
index f8ff2dc7f..55f76e23d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-24.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return new EvalError();
-}
+ function callbackfn(val, idx, obj) {
+ return new EvalError();
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js
index f0237397d..b3aaf6366 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-25.js
@@ -9,8 +9,8 @@ description: >
object
---*/
-function callbackfn(val, idx, obj) {
- return arguments;
-}
+ function callbackfn(val, idx, obj) {
+ return arguments;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js
index d96e7e783..e8119a33d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-26.js
@@ -10,9 +10,8 @@ description: >
---*/
var global = this;
-
-function callbackfn(val, idx, obj) {
- return global;
-}
+ function callbackfn(val, idx, obj) {
+ return global;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js
index e971d690d..320659651 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-28.js
@@ -7,40 +7,37 @@ es5id: 15.4.4.17-7-c-iii-28
description: Array.prototype.some - true prevents further side effects
---*/
-var result = false;
-
-function callbackfn(val, idx, obj) {
- if (idx > 1) {
- result = true;
- }
- return val > 10;
-}
-
-var obj = {
- length: 20
-};
-
-Object.defineProperty(obj, "0", {
- get: function() {
- return 8;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "1", {
- get: function() {
- return 11;
- },
- configurable: true
-});
-
-Object.defineProperty(obj, "2", {
- get: function() {
- result = true;
- return 11;
- },
- configurable: true
-});
+ var result = false;
+ function callbackfn(val, idx, obj) {
+ if (idx > 1) {
+ result = true;
+ }
+ return val > 10;
+ }
+
+ var obj = { length: 20 };
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 8;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ result = true;
+ return 11;
+ },
+ configurable: true
+ });
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
assert.sameValue(result, false, 'result');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js
index d0d8b0cde..cb3c75c0d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-29.js
@@ -9,8 +9,8 @@ description: >
callbackfn is treated as true value
---*/
-function callbackfn() {
- return new Boolean(false);
-}
+ function callbackfn() {
+ return new Boolean(false);
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js
index ab3d088db..b5c6ee0ee 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-3.js
@@ -9,17 +9,14 @@ description: >
(value is false)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return false;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return false;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert.sameValue(Array.prototype.some.call(obj, callbackfn), false, 'Array.prototype.some.call(obj, callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js
index 9b885029c..ff056a325 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-4.js
@@ -9,13 +9,10 @@ description: >
(value is true)
---*/
-function callbackfn(val, idx, obj) {
- return true;
-}
+ function callbackfn(val, idx, obj) {
+ return true;
+ }
-var obj = {
- 0: 11,
- length: 2
-};
+ var obj = { 0: 11, length: 2 };
assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js
index f67054b66..6b0b20e3d 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-5.js
@@ -9,12 +9,12 @@ description: >
(value is 0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return 0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return 0;
+ }
assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js
index af6699424..f54c2e9a7 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-6.js
@@ -9,12 +9,12 @@ description: >
(value is +0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return +0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return +0;
+ }
assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js
index ddb2d1df6..eae2d4fcb 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-7.js
@@ -9,12 +9,12 @@ description: >
(value is -0)
---*/
-var accessed = false;
+ var accessed = false;
-function callbackfn(val, idx, obj) {
- accessed = true;
- return -0;
-}
+ function callbackfn(val, idx, obj) {
+ accessed = true;
+ return -0;
+ }
assert.sameValue([11].some(callbackfn), false, '[11].some(callbackfn)');
assert(accessed, 'accessed !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js
index ce9133200..a5fc01f22 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-8.js
@@ -9,8 +9,8 @@ description: >
(value is positive number)
---*/
-function callbackfn(val, idx, obj) {
- return 5;
-}
+ function callbackfn(val, idx, obj) {
+ return 5;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js
index 3f389202c..2d966cbd0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-iii-9.js
@@ -9,8 +9,8 @@ description: >
(value is negative number)
---*/
-function callbackfn(val, idx, obj) {
- return -5;
-}
+ function callbackfn(val, idx, obj) {
+ return -5;
+ }
assert([11].some(callbackfn), '[11].some(callbackfn) !== true');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js
index d37fa7cb2..0546141f5 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-1.js
@@ -7,7 +7,7 @@ es5id: 15.4.4.17-8-1
description: Array.prototype.some returns false if 'length' is 0 (empty array)
---*/
-function cb() {}
-var i = [].some(cb);
+ function cb(){}
+ var i = [].some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js
index bb8b38ba1..d3da6def0 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-10.js
@@ -7,20 +7,19 @@ es5id: 15.4.4.17-8-10
description: Array.prototype.some - subclassed array when length is reduced
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 2;
-function foo() {}
-var f = new foo();
-f.length = 2;
-
-function cb(val)
-{
- if (val > 2)
- return true;
- else
- return false;
-}
-var i = f.some(cb);
+ function cb(val)
+ {
+ if(val > 2)
+ return true;
+ else
+ return false;
+ }
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js
index c5914d1a6..8d5f1a786 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-11.js
@@ -9,15 +9,14 @@ description: >
return false
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return false;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return false;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
+ var arr = [0,1,2,3,4,5,6,7,8,9];
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js
index 0ba4ed10f..5912e36c4 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-12.js
@@ -9,12 +9,12 @@ description: >
called on
---*/
-function callbackfn(val, idx, obj)
-{
- return true;
-}
-var arr = [1, 2, 3, 4, 5];
-arr.some(callbackfn);
+ function callbackfn(val, idx, obj)
+ {
+ return true;
+ }
+ var arr = [1,2,3,4,5];
+ arr.some(callbackfn);
assert.sameValue(arr[0], 1, 'arr[0]');
assert.sameValue(arr[1], 2, 'arr[1]');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js
index 863317f98..7ef5af8be 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-13.js
@@ -7,17 +7,16 @@ es5id: 15.4.4.17-8-13
description: Array.prototype.some doesn't visit expandos
---*/
-var callCnt = 0;
+ var callCnt = 0;
+ function callbackfn(val, idx, obj)
+ {
+ callCnt++;
+ return false;
+ }
-function callbackfn(val, idx, obj)
-{
- callCnt++;
- return false;
-}
-
-var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
-arr["i"] = 10;
-arr[true] = 11;
+ var arr = [0,1,2,3,4,5,6,7,8,9];
+ arr["i"] = 10;
+ arr[true] = 11;
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js
index 90ab6cb60..da760e894 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-2.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to null (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
-function foo() {}
-var f = new foo();
-f.length = null;
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js
index efe0afb0c..f35fe2196 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-3.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to false (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
-function foo() {}
-var f = new foo();
-f.length = false;
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js
index 32bfde408..5b6d7153e 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-4.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to 0 (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
-function foo() {}
-var f = new foo();
-f.length = 0;
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js
index 1e2fe9b3b..e66aa4802 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-5.js
@@ -9,14 +9,13 @@ description: >
Array, length overridden to '0' (type conversion))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
-function foo() {}
-var f = new foo();
-f.length = '0';
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js
index 546c43f50..5607fad05 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-6.js
@@ -9,20 +9,15 @@ description: >
Array, length overridden with obj with valueOf)
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
-var o = {
- valueOf: function() {
- return 0;
- }
-};
-f.length = o;
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js
index 1b4d757c0..c483ee3d6 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-7.js
@@ -9,26 +9,21 @@ description: >
Array, length overridden with obj w/o valueOf (toString))
---*/
-foo.prototype = new Array(1, 2, 3);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
-function foo() {}
-var f = new foo();
+ var o = { toString: function () { return '0';}};
+ f.length = o;
-var o = {
- toString: function() {
- return '0';
- }
-};
-f.length = o;
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-
-function cb() {}
-var i = f.some(cb);
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js
index 1365c1faf..14dd2908f 100644
--- a/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js
+++ b/test/built-ins/Array/prototype/some/15.4.4.17-8-8.js
@@ -9,29 +9,28 @@ description: >
Array, length overridden with []
---*/
-foo.prototype = new Array(1, 2, 3);
-
-function foo() {}
-var f = new foo();
-
-f.length = [];
-
-// objects inherit the default valueOf method of the Object object;
-// that simply returns the itself. Since the default valueOf() method
-// does not return a primitive value, ES next tries to convert the object
-// to a number by calling its toString() method and converting the
-// resulting string to a number.
-//
-// The toString( ) method on Array converts the array elements to strings,
-// then returns the result of concatenating these strings, with commas in
-// between. An array with no elements converts to the empty string, which
-// converts to the number 0. If an array has a single element that is a
-// number n, the array converts to a string representation of n, which is
-// then converted back to n itself. If an array contains more than one element,
-// or if its one element is not a number, the array converts to NaN.
-
-function cb() {}
-var i = f.some(cb);
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ f.length = [];
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+
+ function cb(){}
+ var i = f.some(cb);
assert.sameValue(i, false, 'i');
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js
index b43210978..4dbefaaf6 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.2_T2.js
@@ -11,7 +11,7 @@ es5id: 15.4.4.11_A1.2_T2
description: If comparefn is not undefined
---*/
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
if (x === undefined) return -1;
if (y === undefined) return 1;
return 0;
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js
index 0f6a27357..2a141dba5 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.4_T2.js
@@ -10,7 +10,7 @@ es5id: 15.4.4.11_A1.4_T2
description: If comparefn is not undefined
---*/
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
if (x === undefined) return -1;
if (y === undefined) return 1;
return 0;
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js
index 321b6f63f..334aa6263 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A1.5_T1.js
@@ -8,7 +8,7 @@ es5id: 15.4.4.11_A1.5_T1
description: Checking sort() and sort(undefined)
---*/
-var x = new Array(1, 0);
+var x = new Array(1,0);
x.sort();
//CHECK#1
@@ -26,7 +26,7 @@ if (x[1] !== 1) {
$ERROR('#3: var x = new Array(1,0); x.sort(); x[1] === 1. Actual: ' + (x[1]));
}
-var x = new Array(1, 0);
+var x = new Array(1,0);
x.sort(undefined);
//CHECK#4
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js
index 044858b0a..336bcadff 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T2.js
@@ -12,7 +12,7 @@ description: Checking RUSSIAN ALPHABET
---*/
var alphabetR = ["ё", "я", "ю", "э", "ь", "ы", "ъ", "щ", "ш", "ч", "ц", "х", "ф", "у", "т", "с", "р", "П", "О", "Н", "М", "Л", "К", "Й", "И", "З", "Ж", "Е", "Д", "Г", "В", "Б", "А"];
-var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"];
+var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"];
//CHECK#1
alphabetR.sort();
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js
index c2bfb0615..de262fd3c 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.1_T3.js
@@ -11,16 +11,9 @@ es5id: 15.4.4.11_A2.1_T3
description: Checking ToString operator
---*/
-var obj = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return -2
- }
-};
+var obj = {valueOf: function() {return 1}, toString: function() {return -2}};
var alphabetR = [undefined, 2, 1, "X", -1, "a", true, obj, NaN, Infinity];
-var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined];
+var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined];
//CHECK#1
alphabetR.sort();
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js
index 771eba4c8..537e1be33 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T1.js
@@ -9,9 +9,9 @@ description: Checking ENGLISH ALPHABET
---*/
var alphabetR = ["z", "y", "x", "w", "v", "u", "t", "s", "r", "q", "p", "o", "n", "M", "L", "K", "J", "I", "H", "G", "F", "E", "D", "C", "B", "A"];
-var alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
+var alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
var xS = String(x);
var yS = String(y);
if (xS < yS) return 1
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js
index 0075ca299..2c67068ae 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T2.js
@@ -9,9 +9,9 @@ description: Checking RUSSIAN ALPHABET
---*/
var alphabetR = ["ё", "я", "ю", "э", "ь", "ы", "ъ", "щ", "ш", "ч", "ц", "х", "ф", "у", "т", "с", "р", "П", "О", "Н", "М", "Л", "К", "Й", "И", "З", "Ж", "Е", "Д", "Г", "В", "Б", "А"];
-var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"];
+var alphabet = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "р", "с", "т", "у", "ф", "х", "ц", "ч", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я", "ё"];
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
var xS = String(x);
var yS = String(y);
if (xS < yS) return 1
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js
index 6e5df4ec4..ddc5354f0 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A2.2_T3.js
@@ -8,18 +8,11 @@ es5id: 15.4.4.11_A2.2_T3
description: Checking ToString operator
---*/
-var obj = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return -2
- }
-};
+var obj = {valueOf: function() {return 1}, toString: function() {return -2}};
var alphabetR = [undefined, 2, 1, "X", -1, "a", true, obj, NaN, Infinity];
var alphabet = [true, "a", "X", NaN, Infinity, 2, 1, obj, -1, undefined];
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
var xS = String(x);
var yS = String(y);
if (xS < yS) return 1
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js
index c8fe6d58f..d4598f7c0 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T1.js
@@ -10,33 +10,15 @@ es5id: 15.4.4.11_A3_T1
description: If comparefn is undefined, use SortCompare operator
---*/
-var obj = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return -2
- }
-};
-var alphabetR = {
- 0: undefined,
- 1: 2,
- 2: 1,
- 3: "X",
- 4: -1,
- 5: "a",
- 6: true,
- 7: obj,
- 8: NaN,
- 9: Infinity
-};
+var obj = {valueOf: function() {return 1}, toString: function() {return -2}};
+var alphabetR = {0:undefined, 1:2, 2:1, 3:"X", 4:-1, 5:"a", 6:true, 7:obj, 8:NaN, 9:Infinity};
alphabetR.sort = Array.prototype.sort;
alphabetR.length = 10;
var alphabet = [-1, obj, 1, 2, Infinity, NaN, "X", "a", true, undefined];
alphabetR.sort();
-//CHECK#0
+ //CHECK#0
alphabetR.getClass = Object.prototype.toString;
if (alphabetR.getClass() !== "[object " + "Object" + "]") {
$ERROR('#0: alphabetR.sort() is Object object, not Array object');
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js
index 5da87d3d4..e5c56d65d 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A3_T2.js
@@ -10,31 +10,13 @@ es5id: 15.4.4.11_A3_T2
description: If comparefn is not undefined
---*/
-var obj = {
- valueOf: function() {
- return 1
- },
- toString: function() {
- return -2
- }
-};
-var alphabetR = {
- 0: undefined,
- 1: 2,
- 2: 1,
- 3: "X",
- 4: -1,
- 5: "a",
- 6: true,
- 7: obj,
- 8: NaN,
- 9: Infinity
-};
+var obj = {valueOf: function() {return 1}, toString: function() {return -2}};
+var alphabetR = {0:undefined, 1:2, 2:1, 3:"X", 4:-1, 5:"a", 6:true, 7:obj, 8:NaN, 9:Infinity};
alphabetR.sort = Array.prototype.sort;
alphabetR.length = 10;
var alphabet = [true, "a", "X", NaN, Infinity, 2, 1, obj, -1, undefined];
-var myComparefn = function(x, y) {
+ var myComparefn = function(x,y) {
var xS = String(x);
var yS = String(y);
if (xS < yS) return 1
@@ -44,7 +26,7 @@ var myComparefn = function(x, y) {
alphabetR.sort(myComparefn);
-//CHECK#0
+ //CHECK#0
alphabetR.getClass = Object.prototype.toString;
if (alphabetR.getClass() !== "[object " + "Object" + "]") {
$ERROR('#0: alphabetR.sort() is Object object, not Array object');
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js
index 32ddbcd18..b1549f26e 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A5_T1.js
@@ -9,14 +9,14 @@ description: comparefn function throw "error"
---*/
//CHECK#1
-var myComparefn = function(x, y) {
+var myComparefn = function(x,y) {
throw "error";
}
-var x = [1, 0];
+var x = [1,0];
try {
x.sort(myComparefn)
$ERROR('#1.1: Array.sort should not eat exceptions');
-} catch (e) {
+} catch(e) {
if (e !== "error") {
$ERROR('#1.2: Array.sort should not eat exceptions');
}
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js
index 4d26b4701..4b623ca34 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A6_T2.js
@@ -11,7 +11,7 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [1, 0];
+var x = [1,0];
x.length = 2;
x.sort();
@@ -40,10 +40,7 @@ if (x[1] !== -1) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.sort = Array.prototype.sort;
-x = {
- 0: 1,
- 1: 0
-};
+x = {0:1,1:0};
x.sort();
//CHECK#5
diff --git a/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js b/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js
index bfa49d90a..289887f03 100644
--- a/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js
+++ b/test/built-ins/Array/prototype/sort/S15.4.4.11_A8.js
@@ -10,7 +10,7 @@ flags: [noStrict]
---*/
var global = this;
-[2, 3].sort(function(x, y) {
+[2,3].sort(function(x,y) {
"use strict";
if (this === global) {
@@ -18,7 +18,7 @@ var global = this;
}
if (this !== undefined) {
$ERROR('#2: Sort comparefn should be called with this===undefined. ' +
- 'Actual: ' + this);
+ 'Actual: ' + this);
}
return x - y;
});
diff --git a/test/built-ins/Array/prototype/sort/bug_596_1.js b/test/built-ins/Array/prototype/sort/bug_596_1.js
index a144d9fcd..1c6e4d724 100644
--- a/test/built-ins/Array/prototype/sort/bug_596_1.js
+++ b/test/built-ins/Array/prototype/sort/bug_596_1.js
@@ -11,10 +11,10 @@ author: Thomas Dahlstrom (tdahlstrom@gmail.com)
var counter = 0;
var object = {
- toString: function() {
- counter++;
- return "";
- }
+ toString: function(){
+ counter++;
+ return "";
+ }
};
[object, object].sort();
diff --git a/test/built-ins/Array/prototype/sort/bug_596_2.js b/test/built-ins/Array/prototype/sort/bug_596_2.js
index ec571de20..1fbcd77ce 100644
--- a/test/built-ins/Array/prototype/sort/bug_596_2.js
+++ b/test/built-ins/Array/prototype/sort/bug_596_2.js
@@ -10,46 +10,46 @@ description: >
author: Thomas Dahlstrom (tdahlstrom@gmail.com)
---*/
-var array = ['a', , void 0];
+var array = ['a',,void 0];
//CHECK#1
if (array.length !== 3) {
- $ERROR('#1: array.length !== 3. Actual: ' + (array.length))
+ $ERROR('#1: array.length !== 3. Actual: ' + (array.length))
}
//CHECK#2
if (array.hasOwnProperty('0') !== true) {
- $ERROR("#2: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0'));
+ $ERROR("#2: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0'));
}
//CHECK#3
if (array.hasOwnProperty('1') !== false) {
- $ERROR("#3: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1'));
+ $ERROR("#3: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1'));
}
//CHECK#4
if (array.hasOwnProperty('2') !== true) {
- $ERROR("#4: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2'));
+ $ERROR("#4: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2'));
}
array.sort();
//CHECK#5
if (array.length !== 3) {
- $ERROR('#5: array.length !== 3. Actual: ' + (array.length))
+ $ERROR('#5: array.length !== 3. Actual: ' + (array.length))
}
//CHECK#6
if (array.hasOwnProperty('0') !== true) {
- $ERROR("#6: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0'));
+ $ERROR("#6: array.hasOwnProperty('0'). Actual: " + array.hasOwnProperty('0'));
}
//CHECK#7
if (array.hasOwnProperty('1') !== true) {
- $ERROR("#7: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1'));
+ $ERROR("#7: array.hasOwnProperty('1'). Actual: " + array.hasOwnProperty('1'));
}
//CHECK#8
if (array.hasOwnProperty('2') !== false) {
- $ERROR("#8: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2'));
+ $ERROR("#8: array.hasOwnProperty('2'). Actual: " + array.hasOwnProperty('2'));
}
diff --git a/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js b/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js
index 62ab29644..c35b0f876 100644
--- a/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js
+++ b/test/built-ins/Array/prototype/sort/comparefn-nonfunction-call-throws.js
@@ -23,7 +23,7 @@ var poisoned = {
};
assert.throws(TypeError, function() {
- sample.sort(null);
+ sample.sort(null);
}, "sample.sort(null);");
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js b/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js
index 0e0d144a6..8ec20c11c 100644
--- a/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js
+++ b/test/built-ins/Array/prototype/splice/15.4.4.12-9-a-1.js
@@ -9,8 +9,8 @@ description: >
ToString(actualStart+k) in an Array
---*/
-var arrObj = [1, 2, 3];
-var newArrObj = arrObj.splice(-2, 1);
+ var arrObj = [1, 2, 3];
+ var newArrObj = arrObj.splice(-2, 1);
assert.sameValue(newArrObj.length, 1, 'newArrObj.length');
assert.sameValue(newArrObj[0], 2, 'newArrObj[0]');
diff --git a/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js b/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js
index ab59bcf6f..e911470f0 100644
--- a/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js
+++ b/test/built-ins/Array/prototype/splice/15.4.4.12-9-c-ii-1.js
@@ -10,28 +10,28 @@ description: >
less than 'actualDeleteCount (Step 9.c.ii)
---*/
-var arr = ["a", "b", "c"];
-Array.prototype[0] = "test";
-var newArr = arr.splice(2, 1, "d");
+ var arr = ["a", "b", "c"];
+ Array.prototype[0] = "test";
+ var newArr = arr.splice(2, 1, "d");
-var verifyValue = false;
-verifyValue = arr.length === 3 && arr[0] === "a" && arr[1] === "b" && arr[2] === "d" &&
- newArr[0] === "c" && newArr.length === 1;
+ var verifyValue = false;
+ verifyValue = arr.length === 3 && arr[0] === "a" && arr[1] === "b" && arr[2] === "d"
+ && newArr[0] === "c" && newArr.length === 1;
-var verifyEnumerable = false;
-for (var p in newArr) {
- if (newArr.hasOwnProperty("0") && p === "0") {
- verifyEnumerable = true;
- }
-}
+ var verifyEnumerable = false;
+ for (var p in newArr) {
+ if (newArr.hasOwnProperty("0") && p === "0") {
+ verifyEnumerable = true;
+ }
+ }
-var verifyWritable = false;
-newArr[0] = 12;
-verifyWritable = newArr[0] === 12;
+ var verifyWritable = false;
+ newArr[0] = 12;
+ verifyWritable = newArr[0] === 12;
-var verifyConfigurable = false;
-delete newArr[0];
-verifyConfigurable = newArr.hasOwnProperty("0");
+ var verifyConfigurable = false;
+ delete newArr[0];
+ verifyConfigurable = newArr.hasOwnProperty("0");
assert(verifyValue, 'verifyValue !== true');
assert.sameValue(verifyConfigurable, false, 'verifyConfigurable');
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js
index 5cdd55a4e..27bc884ad 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T1
description: length > deleteCount > start = 0, itemCount = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, 3);
+var x = [0,1,2,3];
+var arr = x.splice(0,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js
index 3685147d6..12cd147ec 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T2
description: length > deleteCount > start = 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, 3, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(0,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js
index 713f6a041..118d0a82a 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T3
description: length = deleteCount > start = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, 4);
+var x = [0,1,2,3];
+var arr = x.splice(0,4);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js
index 0eb829e79..5fb239942 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T4
description: length > deleteCount > start > 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(1, 3, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(1,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js
index 652524bd1..9e2dac61f 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T5.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T5
description: deleteCount > length > start = 0, itemCount = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, 5);
+var x = [0,1,2,3];
+var arr = x.splice(0,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js
index 91253b80f..0ea1d8bce 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.1_T6.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.1_T6
description: length = deleteCount > start > 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(1, 4, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(1,4,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js
index 0db991b3e..1929add94 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T1
description: -length = start < deleteCount < 0, itemCount = 0
---*/
-var x = [0, 1];
-var arr = x.splice(-2, -1);
+var x = [0,1];
+var arr = x.splice(-2,-1);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js
index 0be3d2398..fddd02dc8 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T2
description: -length < start = deleteCount < 0, itemCount = 0
---*/
-var x = [0, 1];
-var arr = x.splice(-1, -1);
+var x = [0,1];
+var arr = x.splice(-1,-1);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js
index 89e1ee2b5..f5d24cac3 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T3
description: -length = start < deleteCount < 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(-2, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(-2,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js
index 02e2dbea8..bb68a7680 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T4
description: -length < start = deleteCount < 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(-1, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(-1,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js
index ed8efafe7..f8fc1eccb 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.2_T5.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.2_T5
description: start < -length < deleteCount < 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(-3, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(-3,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js
index 66c3d55e2..909d270ac 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T1
description: -length < deleteCount < start = 0, itemCount = 0
---*/
-var x = [0, 1];
-var arr = x.splice(0, -1);
+var x = [0,1];
+var arr = x.splice(0,-1);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js
index 089a2ce8c..44917a67f 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T2
description: -length = -start < deleteCount < 0, itemCount = 0
---*/
-var x = [0, 1];
-var arr = x.splice(2, -1);
+var x = [0,1];
+var arr = x.splice(2,-1);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js
index 5c56b995a..f4f2678ad 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T3
description: -length < deleteCount < start = 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(0, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(0,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js
index 828e21cbb..133257453 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T4
description: -length = -start < deleteCount < 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(2, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(2,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js
index cd2ccab2c..8c4475cd7 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.3_T5.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.3_T5
description: -start < -length < deleteCount < 0, itemCount > 0
---*/
-var x = [0, 1];
-var arr = x.splice(3, -1, 2, 3);
+var x = [0,1];
+var arr = x.splice(3,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js
index 9b4cd2228..01605c746 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T1.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T1
description: length = -start > deleteCount > 0, itemCount = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-4, 3);
+var x = [0,1,2,3];
+var arr = x.splice(-4,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js
index d531be2ee..2862b3f60 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T2.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T2
description: length = -start > deleteCount > 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-4, 3, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(-4,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js
index 318d33a44..4be6a0b97 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T3.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T3
description: -start > length = deleteCount > 0, itemCount = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-5, 4);
+var x = [0,1,2,3];
+var arr = x.splice(-5,4);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js
index 9c2e3c579..2dffe18b3 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T4.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T4
description: length > -start = deleteCount > 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-3, 3, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(-3,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js
index 4d051f44c..37ec9f17f 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T5.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T5
description: -start > deleteCount > length > 0, itemCount = 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-9, 5);
+var x = [0,1,2,3];
+var arr = x.splice(-9,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js
index 779089de1..4fa9aed73 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.4_T6.js
@@ -10,8 +10,8 @@ es5id: 15.4.4.12_A1.4_T6
description: length = deleteCount > -start > 0, itemCount > 0
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(-3, 4, 4, 5);
+var x = [0,1,2,3];
+var arr = x.splice(-3,4,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js
index 046f111f8..ec581518d 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T1.js
@@ -8,7 +8,7 @@ es5id: 15.4.4.12_A1.5_T1
description: start === undefined, end === undefined
---*/
-var x = [0, 1, 2, 3];
+var x = [0,1,2,3];
var arr = x.splice(undefined, undefined);
//CHECK#1
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js
index 4741352b5..5551f3596 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A1.5_T2.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A1.5_T2
description: end === undefined
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(1, undefined);
+var x = [0,1,2,3];
+var arr = x.splice(1,undefined);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js
index 2e66e7f34..32848cc6f 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T1.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T1
description: start is not integer
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(1.5, 3);
+var x = [0,1,2,3];
+var arr = x.splice(1.5,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js
index 94ef13972..4e379cda8 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T2.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T2
description: start = NaN
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(NaN, 3);
+var x = [0,1,2,3];
+var arr = x.splice(NaN,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js
index eaf3c07a1..807c0a41a 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T3.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T3
description: start = Infinity
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(Number.POSITIVE_INFINITY, 3);
+var x = [0,1,2,3];
+var arr = x.splice(Number.POSITIVE_INFINITY,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js
index 939454e48..083ed9ca8 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T4.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.1_T4
description: start = -Infinity
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(Number.NEGATIVE_INFINITY, 3);
+var x = [0,1,2,3];
+var arr = x.splice(Number.NEGATIVE_INFINITY,3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js
index 9cf978a58..51a7aa765 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.1_T5.js
@@ -8,15 +8,8 @@ es5id: 15.4.4.12_A2.1_T5
description: ToInteger use ToNumber
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice({
- valueOf: function() {
- return 0
- },
- toString: function() {
- return 3
- }
-}, 3);
+var x = [0,1,2,3];
+var arr = x.splice({valueOf: function() {return 0}, toString: function() {return 3}},3);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js
index 4212e9e1f..8a8cc929d 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T1.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T1
description: deleteCount is not integer
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(1, 3.5);
+var x = [0,1,2,3];
+var arr = x.splice(1,3.5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js
index cbe0fbb78..c97e14734 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T2.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T2
description: deleteCount = NaN
---*/
-var x = [0, 1];
-var arr = x.splice(0, NaN);
+var x = [0,1];
+var arr = x.splice(0,NaN);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js
index 1a2e4fb1e..8622ff765 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T3.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T3
description: deleteCount = Infinity
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, Number.POSITIVE_INFINITY);
+var x = [0,1,2,3];
+var arr = x.splice(0,Number.POSITIVE_INFINITY);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js
index d0ec317ce..6c3008074 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T4.js
@@ -8,8 +8,8 @@ es5id: 15.4.4.12_A2.2_T4
description: deleteCount = -Infinity
---*/
-var x = [0, 1];
-var arr = x.splice(0, Number.NEGATIVE_INFINITY);
+var x = [0,1];
+var arr = x.splice(0,Number.NEGATIVE_INFINITY);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js
index 911ee8def..d42f023fc 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2.2_T5.js
@@ -8,15 +8,8 @@ es5id: 15.4.4.12_A2.2_T5
description: ToInteger use ToNumber
---*/
-var x = [0, 1, 2, 3];
-var arr = x.splice(0, {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return 0
- }
-});
+var x = [0,1,2,3];
+var arr = x.splice(0,{valueOf: function() {return 3}, toString: function() {return 0}});
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js
index 53135fec3..120d64c81 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T1.js
@@ -12,15 +12,10 @@ description: >
positive, use min(deleteCount, length - start)
---*/
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- 3: 3
-};
+var obj = {0:0,1:1,2:2,3:3};
obj.length = 4;
obj.splice = Array.prototype.splice;
-var arr = obj.splice(0, 3, 4, 5);
+var arr = obj.splice(0,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js
index d0c6aed9b..294da306b 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T2.js
@@ -12,13 +12,10 @@ description: >
is negative, use 0
---*/
-var obj = {
- 0: 0,
- 1: 1
-};
+var obj = {0:0,1:1};
obj.length = 2;
obj.splice = Array.prototype.splice;
-var arr = obj.splice(-2, -1, 2, 3);
+var arr = obj.splice(-2,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js
index 4b6fdb4b9..3131c9a3a 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T3.js
@@ -12,13 +12,10 @@ description: >
negative, use 0
---*/
-var obj = {
- 0: 0,
- 1: 1
-};
+var obj = {0:0,1:1};
obj.length = 2;
obj.splice = Array.prototype.splice;
-var arr = obj.splice(0, -1, 2, 3);
+var arr = obj.splice(0,-1,2,3);
//CHECK#0
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js
index 1127a7cb6..ca455cad5 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A2_T4.js
@@ -12,15 +12,10 @@ description: >
is positive, use min(deleteCount, length - start)
---*/
-var obj = {
- 0: 0,
- 1: 1,
- 2: 2,
- 3: 3
-};
+var obj = {0:0,1:1,2:2,3:3};
obj.length = 4;
obj.splice = Array.prototype.splice;
-var arr = obj.splice(-4, 3, 4, 5);
+var arr = obj.splice(-4,3,4,5);
//CHECK#1
arr.getClass = Object.prototype.toString;
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js
index bf7b3a654..4d92ace05 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T1.js
@@ -22,20 +22,20 @@ if (arr.length !== 1) {
//CHECK#2
if (obj.length !== 4294967295) {
- $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj.length === 4294967295. Actual: ' + (obj.length));
+ $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj.length === 4294967295. Actual: ' + (obj.length));
}
//CHECK#3
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[4294967295] !== undefined) {
- $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
+ $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); obj[4294967295] === undefined. Actual: ' + (obj[4294967295]));
}
//CHECK#5
if (arr[0] !== "y") {
- $ERROR('#5: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); arr[0] === "y". Actual: ' + (arr[0]));
+ $ERROR('#5: var obj = {}; obj.splice = Array.prototype.splice; obj[0] = "x"; obj[4294967295] = "y"; obj.length = 4294967296; var arr = obj.splice(4294967295,1); arr[0] === "y". Actual: ' + (arr[0]));
}
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js
index 309de2f1f..3232c9a11 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A3_T3.js
@@ -12,7 +12,7 @@ var obj = {};
obj.splice = Array.prototype.splice;
obj[4294967294] = "x";
obj.length = -1;
-var arr = obj.splice(4294967294, 1);
+var arr = obj.splice(4294967294,1);
//CHECK#1
if (arr.length !== 0) {
@@ -21,15 +21,15 @@ if (arr.length !== 0) {
//CHECK#2
if (arr[0] !== undefined) {
- $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); arr[0] === undefined. Actual: ' + (arr[0]));
+ $ERROR('#2: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); arr[0] === undefined. Actual: ' + (arr[0]));
}
//CHECK#3
if (obj.length !== 0) {
- $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj.length === 0. Actual: ' + (obj.length));
+ $ERROR('#3: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj.length === 0. Actual: ' + (obj.length));
}
//CHECK#4
if (obj[4294967294] !== "x") {
- $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj[4294967294] === "x". Actual: ' + (obj[4294967294]));
+ $ERROR('#4: var obj = {}; obj.splice = Array.prototype.splice; obj[4294967294] = "x"; obj.length = 1; var arr = obj.splice(4294967294,1); obj[4294967294] === "x". Actual: ' + (obj[4294967294]));
}
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js
index 7754dc3f4..ed0ab16aa 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T1.js
@@ -11,8 +11,8 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [0, 1];
-var arr = x.splice(1, 1);
+var x = [0,1];
+var arr = x.splice(1,1);
//CHECK#1
if (arr.length !== 1) {
@@ -48,11 +48,8 @@ if (x[1] !== -1) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.splice = Array.prototype.splice;
-x = {
- 0: 0,
- 1: 1
-};
-var arr = x.splice(1, 1);
+x = {0:0, 1:1};
+var arr = x.splice(1,1);
//CHECK#7
if (arr.length !== 1) {
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js
index 50cf6d031..3c203ee25 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T2.js
@@ -11,8 +11,8 @@ description: >
---*/
Array.prototype[1] = -1;
-var x = [0, 1];
-var arr = x.splice(1, 1, 2);
+var x = [0,1];
+var arr = x.splice(1,1,2);
//CHECK#1
if (arr.length !== 1) {
@@ -48,11 +48,8 @@ if (x[1] !== 2) {
Object.prototype[1] = -1;
Object.prototype.length = 2;
Object.prototype.splice = Array.prototype.splice;
-x = {
- 0: 0,
- 1: 1
-};
-var arr = x.splice(1, 1, 2);
+x = {0:0, 1:1};
+var arr = x.splice(1,1,2);
//CHECK#7
if (arr.length !== 1) {
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js
index 423c66973..db412def3 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A4_T3.js
@@ -13,7 +13,7 @@ description: >
Array.prototype[0] = -1;
var x = [];
x.length = 1;
-var arr = x.splice(0, 1);
+var arr = x.splice(0,1);
//CHECK#1
if (arr.length !== 1) {
@@ -46,7 +46,7 @@ Object.prototype[0] = -1;
Object.prototype.length = 1;
Object.prototype.splice = Array.prototype.splice;
x = {};
-var arr = x.splice(0, 1);
+var arr = x.splice(0,1);
//CHECK#6
if (arr.length !== 1) {
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js
index cae54c1da..3c0ff7998 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T1.js
@@ -13,13 +13,13 @@ var a = [0, 1, 2];
a.splice(1, 2, 4);
if (a.length !== 2) {
- $ERROR("Expected a.length === 2, actually " + a.length);
+ $ERROR("Expected a.length === 2, actually " + a.length);
}
if (a[0] !== 0) {
- $ERROR("Expected a[0] === 0, actually " + a[0]);
+ $ERROR("Expected a[0] === 0, actually " + a[0]);
}
if (a[1] !== 4) {
- $ERROR("Expected a[1] === 4, actually " + a[1]);
+ $ERROR("Expected a[1] === 4, actually " + a[1]);
}
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js
index cf53a8235..e75676732 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T2.js
@@ -11,7 +11,7 @@ description: Array.prototype.splice throws if `length` is read-only
var a = [0, 1, 2];
Object.defineProperty(a, 'length', {
- writable: false
+ writable: false
});
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js
index f42c6f00f..e568f40d6 100644
--- a/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js
+++ b/test/built-ins/Array/prototype/splice/S15.4.4.12_A6.1_T3.js
@@ -9,17 +9,15 @@ description: Array.prototype.splice throws if `length` is read-only
---*/
var a = {
- get length() {
- return 0;
- },
- splice: Array.prototype.splice
+ get length() { return 0; },
+ splice: Array.prototype.splice
};
try {
- a.splice(1, 2, 4);
- $ERROR("Expected a TypeError");
+ a.splice(1, 2, 4);
+ $ERROR("Expected a TypeError");
} catch (e) {
- if (!(e instanceof TypeError)) {
- throw e;
- }
+ if (!(e instanceof TypeError)) {
+ throw e;
+ }
}
diff --git a/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js b/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js
index 24584ba48..a376e42e7 100644
--- a/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js
+++ b/test/built-ins/Array/prototype/splice/clamps-length-to-integer-limit.js
@@ -19,18 +19,18 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
Array.prototype.splice.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
Array.prototype.splice.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
Array.prototype.splice.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 + 2");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 + 2");
arrayLike.length = Infinity;
Array.prototype.splice.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is Infinity");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is Infinity");
diff --git a/test/built-ins/Array/prototype/splice/create-non-array.js b/test/built-ins/Array/prototype/splice/create-non-array.js
index 153e48462..0af93e8c5 100644
--- a/test/built-ins/Array/prototype/splice/create-non-array.js
+++ b/test/built-ins/Array/prototype/splice/create-non-array.js
@@ -16,9 +16,7 @@ info: |
4. If isArray is false, return ? ArrayCreate(length).
---*/
-var obj = {
- length: 0
-};
+var obj = { length: 0 };
var callCount = 0;
var result;
Object.defineProperty(obj, 'constructor', {
diff --git a/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js b/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js
index f0a5d73ed..b2f373d61 100644
--- a/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js
+++ b/test/built-ins/Array/prototype/splice/create-species-length-exceeding-integer-limit.js
@@ -28,7 +28,7 @@ function StopSplice() {}
var traps = [];
var targetLength;
-var array = ["no-hole", /* hole */ , "stop"];
+var array = ["no-hole", /* hole */, "stop"];
array.constructor = {
[Symbol.species]: function(n) {
targetLength = n;
@@ -42,7 +42,7 @@ var source = new Proxy(array, allowProxyTraps({
// length property exceeding 2^53-1.
if (pk === "length")
- return 2 ** 53 + 2;
+ return 2**53 + 2;
return Reflect.get(t, pk, r);
},
@@ -66,11 +66,11 @@ var target = new Proxy([], allowProxyTraps({
assert.throws(StopSplice, function() {
// deleteCount argument exceeding 2^53-1.
- Array.prototype.splice.call(source, 0, 2 ** 53 + 4);
+ Array.prototype.splice.call(source, 0, 2**53 + 4);
});
-assert.sameValue(targetLength, 2 ** 53 - 1,
- "length and deleteCount were correctly clamped to 2^53-1");
+assert.sameValue(targetLength, 2**53 - 1,
+ "length and deleteCount were correctly clamped to 2^53-1");
assert.compareArray(traps, [
"source.[[Get]]:length",
diff --git a/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js b/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js
index 7734bb325..f48e48d9e 100644
--- a/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js
+++ b/test/built-ins/Array/prototype/splice/length-and-deleteCount-exceeding-integer-limit.js
@@ -30,25 +30,25 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
"9007199254740990": "9007199254740990",
"9007199254740991": "9007199254740991",
- length: 2 ** 53 + 2,
+ length: 2**53 + 2,
};
-var result = Array.prototype.splice.call(arrayLike, 9007199254740989, 2 ** 53 + 4);
+var result = Array.prototype.splice.call(arrayLike, 9007199254740989, 2**53 + 4);
-assert.compareArray(result, ["9007199254740989", "9007199254740990"],
- "arrayLike['9007199254740989'] and arrayLike['9007199254740990'] are removed");
+assert.compareArray(result, [ "9007199254740989", "9007199254740990" ],
+ "arrayLike['9007199254740989'] and arrayLike['9007199254740990'] are removed");
-assert.sameValue(arrayLike.length, 2 ** 53 - 3,
- "New length is 2**53 - 3");
+assert.sameValue(arrayLike.length, 2**53 - 3,
+ "New length is 2**53 - 3");
assert.sameValue(arrayLike["9007199254740988"], "9007199254740988",
- "arrayLike['9007199254740988'] is unchanged");
+ "arrayLike['9007199254740988'] is unchanged");
assert.sameValue("9007199254740989" in arrayLike, false,
- "arrayLike['9007199254740989'] is removed");
+ "arrayLike['9007199254740989'] is removed");
assert.sameValue("9007199254740990" in arrayLike, false,
- "arrayLike['9007199254740990'] is removed");
+ "arrayLike['9007199254740990'] is removed");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js b/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js
index 8340b6a29..e48f292cc 100644
--- a/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js
+++ b/test/built-ins/Array/prototype/splice/length-exceeding-integer-limit-shrink-array.js
@@ -34,31 +34,31 @@ var arrayLike = {
/* "9007199254740989": hole */
"9007199254740990": "9007199254740990",
"9007199254740991": "9007199254740991",
- length: 2 ** 53 + 2,
+ length: 2**53 + 2,
};
var result = Array.prototype.splice.call(arrayLike, 9007199254740987, 1);
-assert.compareArray(result, ["9007199254740987"],
- "arrayLike['9007199254740987'] is removed");
+assert.compareArray(result, [ "9007199254740987" ],
+ "arrayLike['9007199254740987'] is removed");
-assert.sameValue(arrayLike.length, 2 ** 53 - 2,
- "New length is 2**53 - 2");
+assert.sameValue(arrayLike.length, 2**53 - 2,
+ "New length is 2**53 - 2");
assert.sameValue(arrayLike["9007199254740986"], "9007199254740986",
- "arrayLike['9007199254740986'] is unchanged");
+ "arrayLike['9007199254740986'] is unchanged");
assert.sameValue(arrayLike["9007199254740987"], "9007199254740988",
- "arrayLike['9007199254740988'] is moved to arrayLike['9007199254740987']");
+ "arrayLike['9007199254740988'] is moved to arrayLike['9007199254740987']");
assert.sameValue("9007199254740988" in arrayLike, false,
- "arrayLike['9007199254740990'] is removed");
+ "arrayLike['9007199254740990'] is removed");
assert.sameValue(arrayLike["9007199254740989"], "9007199254740990",
- "arrayLike['9007199254740990'] is moved to arrayLike['9007199254740989']");
+ "arrayLike['9007199254740990'] is moved to arrayLike['9007199254740989']");
assert.sameValue("9007199254740990" in arrayLike, false,
- "arrayLike['9007199254740990'] is removed");
+ "arrayLike['9007199254740990'] is removed");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js b/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js
index 42cf6f9c5..9f0b85798 100644
--- a/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js
+++ b/test/built-ins/Array/prototype/splice/length-near-integer-limit-grow-array.js
@@ -31,32 +31,32 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
/* "9007199254740990": empty */
"9007199254740991": "9007199254740991",
- length: 2 ** 53 - 2,
+ length: 2**53 - 2,
};
var result = Array.prototype.splice.call(arrayLike, 9007199254740986, 0, "new-value");
assert.compareArray(result, [], "No elements are removed");
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "New length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 1, "New length is 2**53 - 1");
assert.sameValue(arrayLike["9007199254740985"], "9007199254740985",
- "arrayLike['9007199254740985'] is unchanged");
+ "arrayLike['9007199254740985'] is unchanged");
assert.sameValue(arrayLike["9007199254740986"], "new-value",
- "arrayLike['9007199254740986'] contains the inserted value");
+ "arrayLike['9007199254740986'] contains the inserted value");
assert.sameValue(arrayLike["9007199254740987"], "9007199254740986",
- "arrayLike['9007199254740986'] is moved to arrayLike['9007199254740987']");
+ "arrayLike['9007199254740986'] is moved to arrayLike['9007199254740987']");
assert.sameValue(arrayLike["9007199254740988"], "9007199254740987",
- "arrayLike['9007199254740987'] is moved to arrayLike['9007199254740988']");
+ "arrayLike['9007199254740987'] is moved to arrayLike['9007199254740988']");
assert.sameValue("9007199254740989" in arrayLike, false,
- "arrayLike['9007199254740989'] is removed");
+ "arrayLike['9007199254740989'] is removed");
assert.sameValue(arrayLike["9007199254740990"], "9007199254740989",
- "arrayLike['9007199254740989'] is moved to arrayLike['9007199254740990']");
+ "arrayLike['9007199254740989'] is moved to arrayLike['9007199254740990']");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/splice/set_length_no_args.js b/test/built-ins/Array/prototype/splice/set_length_no_args.js
index 25dbc37ef..a2c04e0fd 100644
--- a/test/built-ins/Array/prototype/splice/set_length_no_args.js
+++ b/test/built-ins/Array/prototype/splice/set_length_no_args.js
@@ -14,8 +14,7 @@ es5id: 15.4.4.12
es6id: 22.1.3.25
---*/
-var getCallCount = 0,
- setCallCount = 0;
+var getCallCount = 0, setCallCount = 0;
var lengthValue;
var obj = {
diff --git a/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js b/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js
index 447eb4d0a..883d0508f 100644
--- a/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js
+++ b/test/built-ins/Array/prototype/splice/throws-if-integer-limit-exceeded.js
@@ -19,17 +19,17 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
assert.throws(TypeError, function() {
Array.prototype.splice.call(arrayLike, 0, 0, null);
}, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
assert.throws(TypeError, function() {
Array.prototype.splice.call(arrayLike, 0, 0, null);
}, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
assert.throws(TypeError, function() {
Array.prototype.splice.call(arrayLike, 0, 0, null);
}, "Length is 2**53 + 2");
diff --git a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js
index c2f7a29a5..1aaa20fc0 100644
--- a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js
+++ b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A1_T1.js
@@ -13,11 +13,7 @@ description: it is the function that should be invoked
---*/
var n = 0;
-var obj = {
- toLocaleString: function() {
- n++
- }
-};
+var obj = {toLocaleString: function() {n++}};
var arr = [undefined, obj, null, obj, obj];
arr.toLocaleString();
diff --git a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js
index 7bf7a44d5..fd32d7702 100644
--- a/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js
+++ b/test/built-ins/Array/prototype/toLocaleString/S15.4.4.3_A3_T1.js
@@ -10,11 +10,7 @@ description: "[[Prototype]] of Array instance is Array.prototype"
//CHECK#1
var n = 0;
-var obj = {
- toLocaleString: function() {
- n++
- }
-};
+var obj = {toLocaleString: function() {n++}};
Array.prototype[1] = obj;
var x = [obj];
x.length = 2;
diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js
index 29ce4d673..dbcce9310 100644
--- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js
+++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T1.js
@@ -14,7 +14,7 @@ description: If Result(2) is zero, return the empty string
var x = new Array();
if (x.toString() !== x.join()) {
$ERROR('#1.1: x = new Array(); x.toString() === x.join(). Actual: ' + (x.toString()));
-} else {
+} else {
if (x.toString() !== "") {
$ERROR('#1.2: x = new Array(); x.toString() === "". Actual: ' + (x.toString()));
}
diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js
index 29e417734..62a82f8b1 100644
--- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js
+++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T2.js
@@ -15,7 +15,7 @@ description: >
---*/
//CHECK#1
-var x = new Array(0, 1, 2, 3);
+var x = new Array(0,1,2,3);
if (x.toString() !== x.join()) {
$ERROR('#1.1: x = new Array(0,1,2,3); x.toString() === x.join(). Actual: ' + (x.toString()));
} else {
@@ -37,7 +37,7 @@ if (x.toString() !== x.join()) {
}
//CHECK#3
-x = Array(undefined, 1, null, 3);
+x = Array(undefined,1,null,3);
if (x.toString() !== x.join()) {
$ERROR('#3.1: x = Array(undefined,1,null,3); x.toString() === x.join(). Actual: ' + (x.toString()));
} else {
diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js
index c3c93e46c..96ad80872 100644
--- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js
+++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T3.js
@@ -11,7 +11,7 @@ description: Operator use ToString from array arguments
---*/
//CHECK#0
-var x = new Array("", "", "");
+var x = new Array("","","");
if (x.toString() !== x.join()) {
$ERROR('#0.1: var x = new Array("","",""); x.toString() === x.join(). Actual: ' + (x.toString()));
} else {
@@ -21,7 +21,7 @@ if (x.toString() !== x.join()) {
}
//CHECK#1
-var x = new Array("\\", "\\", "\\");
+var x = new Array("\\","\\","\\");
if (x.toString() !== x.join()) {
$ERROR('#1.1: var x = new Array("\\","\\","\\"); x.toString() === x.join(). Actual: ' + (x.toString()));
} else {
@@ -41,51 +41,51 @@ if (x.toString() !== x.join()) {
}
//CHECK#3
-var x = new Array(true, true, true);
+var x = new Array(true,true,true);
if (x.toString() !== x.join()) {
- $ERROR('#3.1: var x = new Array(true,true,true); x.toString(true,true,true) === x.join(). Actual: ' + (x.toString(true, true, true)));
+ $ERROR('#3.1: var x = new Array(true,true,true); x.toString(true,true,true) === x.join(). Actual: ' + (x.toString(true,true,true)));
} else {
if (x.toString() !== "true,true,true") {
- $ERROR('#3.2: var x = new Array(true,true,true); x.toString(true,true,true) === "true,true,true". Actual: ' + (x.toString(true, true, true)));
+ $ERROR('#3.2: var x = new Array(true,true,true); x.toString(true,true,true) === "true,true,true". Actual: ' + (x.toString(true,true,true)));
}
}
//CHECK#4
-var x = new Array(null, null, null);
+var x = new Array(null,null,null);
if (x.toString() !== x.join()) {
- $ERROR('#4.1: var x = new Array(null,null,null); x.toString(null,null,null) === x.join(). Actual: ' + (x.toString(null, null, null)));
+ $ERROR('#4.1: var x = new Array(null,null,null); x.toString(null,null,null) === x.join(). Actual: ' + (x.toString(null,null,null)));
} else {
if (x.toString() !== ",,") {
- $ERROR('#4.2: var x = new Array(null,null,null); x.toString(null,null,null) === ",,". Actual: ' + (x.toString(null, null, null)));
+ $ERROR('#4.2: var x = new Array(null,null,null); x.toString(null,null,null) === ",,". Actual: ' + (x.toString(null,null,null)));
}
}
//CHECK#5
-var x = new Array(undefined, undefined, undefined);
+var x = new Array(undefined,undefined,undefined);
if (x.toString() !== x.join()) {
- $ERROR('#5.1: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === x.join(). Actual: ' + (x.toString(undefined, undefined, undefined)));
+ $ERROR('#5.1: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === x.join(). Actual: ' + (x.toString(undefined,undefined,undefined)));
} else {
if (x.toString() !== ",,") {
- $ERROR('#5.2: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === ",,". Actual: ' + (x.toString(undefined, undefined, undefined)));
+ $ERROR('#5.2: var x = new Array(undefined,undefined,undefined); x.toString(undefined,undefined,undefined) === ",,". Actual: ' + (x.toString(undefined,undefined,undefined)));
}
}
//CHECK#6
-var x = new Array(Infinity, Infinity, Infinity);
+var x = new Array(Infinity,Infinity,Infinity);
if (x.toString() !== x.join()) {
- $ERROR('#6.1: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === x.join(). Actual: ' + (x.toString(Infinity, Infinity, Infinity)));
+ $ERROR('#6.1: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === x.join(). Actual: ' + (x.toString(Infinity,Infinity,Infinity)));
} else {
if (x.toString() !== "Infinity,Infinity,Infinity") {
- $ERROR('#6.2: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.toString(Infinity, Infinity, Infinity)));
+ $ERROR('#6.2: var x = new Array(Infinity,Infinity,Infinity); x.toString(Infinity,Infinity,Infinity) === "Infinity,Infinity,Infinity". Actual: ' + (x.toString(Infinity,Infinity,Infinity)));
}
}
//CHECK#7
-var x = new Array(NaN, NaN, NaN);
+var x = new Array(NaN,NaN,NaN);
if (x.toString() !== x.join()) {
- $ERROR('#7.1: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === x.join(). Actual: ' + (x.toString(NaN, NaN, NaN)));
+ $ERROR('#7.1: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === x.join(). Actual: ' + (x.toString(NaN,NaN,NaN)));
} else {
if (x.toString() !== "NaN,NaN,NaN") {
- $ERROR('#7.2: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.toString(NaN, NaN, NaN)));
+ $ERROR('#7.2: var x = new Array(NaN,NaN,NaN); x.toString(NaN,NaN,NaN) === "NaN,NaN,NaN". Actual: ' + (x.toString(NaN,NaN,NaN)));
}
}
diff --git a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js
index 02045cb35..147173991 100644
--- a/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js
+++ b/test/built-ins/Array/prototype/toString/S15.4.4.2_A1_T4.js
@@ -11,11 +11,7 @@ description: If Type(value) is Object, evaluate ToPrimitive(value, String)
---*/
//CHECK#1
-var object = {
- valueOf: function() {
- return "+"
- }
-};
+var object = {valueOf: function() {return "+"}};
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#1.1: var object = {valueOf: function() {return "+"}} var x = new Array(object); x.toString() === x.join(). Actual: ' + (x.toString()));
@@ -26,14 +22,7 @@ if (x.toString() !== x.join()) {
}
//CHECK#2
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return "*"
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return "*"}};
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#2.1: var object = {valueOf: function() {return "+"}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString()));
@@ -44,14 +33,7 @@ if (x.toString() !== x.join()) {
}
//CHECK#3
-var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- return {}
- }
-};
+var object = {valueOf: function() {return "+"}, toString: function() {return {}}};
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#3.1: var object = {valueOf: function() {return x.join()}, toString: function() {return {}}} var x = new Array(object); x.toString() === "+". Actual: ' + (x.toString()));
@@ -63,14 +45,7 @@ if (x.toString() !== x.join()) {
//CHECK#4
try {
- var object = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return "*"
- }
- };
+ var object = {valueOf: function() {throw "error"}, toString: function() {return "*"}};
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#4.1: var object = {valueOf: function() {throw "error"}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString()));
@@ -89,11 +64,7 @@ catch (e) {
}
//CHECK#5
-var object = {
- toString: function() {
- return "*"
- }
-};
+var object = {toString: function() {return "*"}};
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#5.1: var object = {toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString()));
@@ -104,14 +75,7 @@ if (x.toString() !== x.join()) {
}
//CHECK#6
-var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return "*"
- }
-}
+var object = {valueOf: function() {return {}}, toString: function() {return "*"}}
var x = new Array(object);
if (x.toString() !== x.join()) {
$ERROR('#6.1: var object = {valueOf: function() {return {}}, toString: function() {return x.join()}} var x = new Array(object); x.toString() === "*". Actual: ' + (x.toString()));
@@ -123,14 +87,7 @@ if (x.toString() !== x.join()) {
//CHECK#7
try {
- var object = {
- valueOf: function() {
- return "+"
- },
- toString: function() {
- throw "error"
- }
- };
+ var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}};
var x = new Array(object);
x.toString();
$ERROR('#7.1: var object = {valueOf: function() {return "+"}, toString: function() {throw "error"}} var x = new Array(object); x.toString() throw "error". Actual: ' + (x.toString()));
@@ -143,14 +100,7 @@ catch (e) {
//CHECK#8
try {
- var object = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ var object = {valueOf: function() {return {}}, toString: function() {return {}}};
var x = new Array(object);
x.toString();
$ERROR('#8.1: var object = {valueOf: function() {return {}}, toString: function() {return {}}} var x = new Array(object); x.toString() throw TypeError. Actual: ' + (x.toString()));
diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js
index f45be1170..325a8aded 100644
--- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js
+++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T1.js
@@ -19,19 +19,19 @@ obj.unshift = Array.prototype.unshift;
if (obj.length !== undefined) {
$ERROR('#0: var obj = {}; obj.length === undefined. Actual: ' + (obj.length));
} else {
- //CHECK#1
- var unshift = obj.unshift(-1);
- if (unshift !== 1) {
- $ERROR('#1: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1) === 1. Actual: ' + (unshift));
- }
- //CHECK#2
- if (obj.length !== 1) {
- $ERROR('#2: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj.length === 1. Actual: ' + (obj.length));
- }
- //CHECK#3
- if (obj["0"] !== -1) {
- $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj["0"] === -1. Actual: ' + (obj["0"]));
- }
+ //CHECK#1
+ var unshift = obj.unshift(-1);
+ if (unshift !== 1) {
+ $ERROR('#1: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1) === 1. Actual: ' + (unshift));
+ }
+ //CHECK#2
+ if (obj.length !== 1) {
+ $ERROR('#2: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj.length === 1. Actual: ' + (obj.length));
+ }
+ //CHECK#3
+ if (obj["0"] !== -1) {
+ $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj.unshift(-1); obj["0"] === -1. Actual: ' + (obj["0"]));
+ }
}
//CHECK#4
diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js
index 979bc566b..c169a2c06 100644
--- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js
+++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A2_T3.js
@@ -16,39 +16,21 @@ var obj = {};
obj.unshift = Array.prototype.unshift;
//CHECK#1
-obj.length = {
- valueOf: function() {
- return 3
- }
-};
+obj.length = {valueOf: function() {return 3}};
var unshift = obj.unshift();
if (unshift !== 3) {
$ERROR('#1: obj.length = {valueOf: function() {return 3}} obj.unshift() === 3. Actual: ' + (unshift));
}
//CHECK#2
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return 1
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return 1}};
var unshift = obj.unshift();
if (unshift !== 3) {
$ERROR('#0: obj.length = {valueOf: function() {return 3}, toString: function() {return 1}} obj.unshift() === 3. Actual: ' + (unshift));
}
//CHECK#3
-obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- return {}
- }
-};
+obj.length = {valueOf: function() {return 3}, toString: function() {return {}}};
var unshift = obj.unshift();
if (unshift !== 3) {
$ERROR('#1: obj.length = {valueOf: function() {return 3}, toString: function() {return {}}} obj.unshift() === 3. Actual: ' + (unshift));
@@ -56,14 +38,7 @@ if (unshift !== 3) {
//CHECK#4
try {
- obj.length = {
- valueOf: function() {
- return 3
- },
- toString: function() {
- throw "error"
- }
- };
+ obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}};
var unshift = obj.unshift();
if (unshift !== 3) {
$ERROR('#4.1: obj.length = {valueOf: function() {return 3}, toString: function() {throw "error"}}; obj.unshift() === ",". Actual: ' + (unshift));
@@ -78,25 +53,14 @@ catch (e) {
}
//CHECK#5
-obj.length = {
- toString: function() {
- return 1
- }
-};
+obj.length = {toString: function() {return 1}};
var unshift = obj.unshift();
if (unshift !== 1) {
$ERROR('#5: obj.length = {toString: function() {return 1}} obj.unshift() === 1. Actual: ' + (unshift));
}
//CHECK#6
-obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return 1
- }
-}
+obj.length = {valueOf: function() {return {}}, toString: function() {return 1}}
var unshift = obj.unshift();
if (unshift !== 1) {
$ERROR('#6: obj.length = {valueOf: function() {return {}}, toString: function() {return 1}} obj.unshift() === 1. Actual: ' + (unshift));
@@ -105,14 +69,7 @@ if (unshift !== 1) {
//CHECK#7
try {
- obj.length = {
- valueOf: function() {
- throw "error"
- },
- toString: function() {
- return 1
- }
- };
+ obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}};
var unshift = obj.unshift();
$ERROR('#7.1: obj.length = {valueOf: function() {throw "error"}, toString: function() {return 1}}; obj.unshift() throw "error". Actual: ' + (unshift));
}
@@ -125,14 +82,7 @@ catch (e) {
//CHECK#8
try {
- obj.length = {
- valueOf: function() {
- return {}
- },
- toString: function() {
- return {}
- }
- };
+ obj.length = {valueOf: function() {return {}}, toString: function() {return {}}};
var unshift = obj.unshift();
$ERROR('#8.1: obj.length = {valueOf: function() {return {}}, toString: function() {return {}}} obj.unshift() throw TypeError. Actual: ' + (unshift));
}
diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js
index fcbbe10dd..fe67c11de 100644
--- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js
+++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A3_T2.js
@@ -26,20 +26,20 @@ if (obj.length !== 3) {
//CHECK#3
if (obj[0] !== "x") {
- $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0]));
+ $ERROR('#3: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[0] === "x". Actual: ' + (obj[0]));
}
//CHECK#4
if (obj[1] !== "y") {
- $ERROR('#4: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1]));
+ $ERROR('#4: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[1] === "y". Actual: ' + (obj[1]));
}
//CHECK#5
if (obj[2] !== "z") {
- $ERROR('#5: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2]));
+ $ERROR('#5: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[2] === "z". Actual: ' + (obj[2]));
}
//CHECK#6
if (obj[3] !== undefined) {
- $ERROR('#6: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[3] === undefined. Actual: ' + (obj[3]));
+ $ERROR('#6: var obj = {}; obj.unshift = Array.prototype.unshift; obj[0] = ""; obj.length = -4294967295; obj.unshift("x", "y", "z"); obj[3] === undefined. Actual: ' + (obj[3]));
}
diff --git a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js
index 0235e42bb..758fbb338 100644
--- a/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js
+++ b/test/built-ins/Array/prototype/unshift/S15.4.4.13_A4_T1.js
@@ -40,9 +40,7 @@ if (x[0] !== -1) {
Object.prototype[0] = -1;
Object.prototype.length = 1;
Object.prototype.unshift = Array.prototype.unshift;
-x = {
- 0: 1
-};
+x = {0:1};
//CHECK#5
var unshift = x.unshift(0);
diff --git a/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js b/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js
index 9f2e14184..4818d2ab8 100644
--- a/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js
+++ b/test/built-ins/Array/prototype/unshift/clamps-to-integer-limit.js
@@ -15,18 +15,18 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
Array.prototype.unshift.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 - 1");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
Array.prototype.unshift.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
Array.prototype.unshift.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is 2**53 + 2");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is 2**53 + 2");
arrayLike.length = Infinity;
Array.prototype.unshift.call(arrayLike);
-assert.sameValue(arrayLike.length, 2 ** 53 - 1, "Length is Infinity");
+assert.sameValue(arrayLike.length, 2**53 - 1, "Length is Infinity");
diff --git a/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js b/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js
index 5dff513e4..bd4ad9aa6 100644
--- a/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js
+++ b/test/built-ins/Array/prototype/unshift/length-near-integer-limit.js
@@ -26,7 +26,7 @@ info: |
function StopUnshift() {}
var arrayLike = {
- get "9007199254740986" () {
+ get "9007199254740986"() {
throw new StopUnshift();
},
"9007199254740987": "9007199254740987",
@@ -34,27 +34,27 @@ var arrayLike = {
"9007199254740989": "9007199254740989",
/* "9007199254740990": empty */
"9007199254740991": "9007199254740991",
- length: 2 ** 53 - 2
+ length: 2**53 - 2
};
assert.throws(StopUnshift, function() {
Array.prototype.unshift.call(arrayLike, null);
});
-assert.sameValue(arrayLike.length, 2 ** 53 - 2,
- "arrayLike.length is unchanged");
+assert.sameValue(arrayLike.length, 2**53 - 2,
+ "arrayLike.length is unchanged");
assert.sameValue(arrayLike["9007199254740987"], "9007199254740987",
- "arrayLike['9007199254740987'] is unchanged");
+ "arrayLike['9007199254740987'] is unchanged");
assert.sameValue(arrayLike["9007199254740988"], "9007199254740987",
- "arrayLike['9007199254740988'] is replaced with arrayLike['9007199254740987']");
+ "arrayLike['9007199254740988'] is replaced with arrayLike['9007199254740987']");
assert.sameValue("9007199254740989" in arrayLike, false,
- "arrayLike['9007199254740989'] is removed");
+ "arrayLike['9007199254740989'] is removed");
assert.sameValue(arrayLike["9007199254740990"], "9007199254740989",
- "arrayLike['9007199254740990'] is replaced with arrayLike['9007199254740989']");
+ "arrayLike['9007199254740990'] is replaced with arrayLike['9007199254740989']");
assert.sameValue(arrayLike["9007199254740991"], "9007199254740991",
- "arrayLike['9007199254740991'] is unchanged");
+ "arrayLike['9007199254740991'] is unchanged");
diff --git a/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js b/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js
index 9ad723eca..a6e0acc30 100644
--- a/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js
+++ b/test/built-ins/Array/prototype/unshift/throws-if-integer-limit-exceeded.js
@@ -16,17 +16,17 @@ info: |
var arrayLike = {};
-arrayLike.length = 2 ** 53 - 1;
+arrayLike.length = 2**53 - 1;
assert.throws(TypeError, function() {
Array.prototype.unshift.call(arrayLike, null);
}, "Length is 2**53 - 1");
-arrayLike.length = 2 ** 53;
+arrayLike.length = 2**53;
assert.throws(TypeError, function() {
Array.prototype.unshift.call(arrayLike, null);
}, "Length is 2**53");
-arrayLike.length = 2 ** 53 + 2;
+arrayLike.length = 2**53 + 2;
assert.throws(TypeError, function() {
Array.prototype.unshift.call(arrayLike, null);
}, "Length is 2**53 + 2");
diff --git a/test/built-ins/Array/prototype/values/iteration-mutable.js b/test/built-ins/Array/prototype/values/iteration-mutable.js
index 74142c4b5..15a0170d1 100644
--- a/test/built-ins/Array/prototype/values/iteration-mutable.js
+++ b/test/built-ins/Array/prototype/values/iteration-mutable.js
@@ -20,7 +20,7 @@ var result;
array.push('a');
result = iterator.next();
-assert.sameValue(result.done, false, 'First result `done` flag');
+assert.sameValue(result.done, false , 'First result `done` flag');
assert.sameValue(result.value, 'a', 'First result `value`');
result = iterator.next();